In my studies, it is stated that an atomic orbital is usually described in terms of three quantum numbers: $n$, the principal quantum number, $l$, the orbital quantum number and $m$, the magnetic quantum number. My question is:
Given that the principal quantum number, $n$, has a value of $k \in \mathbb{N}$, is there a closed form equation for calculating the number of atomic orbitals in terms of $k$?
As an example, for $n=2$, the number of atomic orbitals is $4$. But can this value be calculated for any $n = k$?