The total number of orbitals in a shell with principal quantum number 'n' is given by n². This is also the total number of possible magnetic quantum numbers.