For `n = 3`, the possible values of l are 0,1 and 2. Thus there is one 3s orbital `(n = 3, l = 1` and `m_(1) - 1,0,+1)`, there are five 3d orbitals `(n= 3, l = 2` and `m_(l) =- 2, -1,0,+1,+2)`
The same value can also be obtained by using the relation, number of orbitals `=n^(2), i,e 3^(2) = 9`