For a given principal quantum number \( n \), the total number of orbitals is given by \( n^2 \). For \( n = 3 \), the number of orbitals is:
\[
n^2 = 3^2 = 9
\]
Thus, there are 9 orbitals in total when \( n = 3 \). These include 1 s orbital, 3 p orbitals, and 5 d orbitals.