$$1s^2 2s^2 2p^6$$
The p-orbital can accommodate a maximum of 6 electrons. In a Ne atom, all the three p-orbitals are completely filled with 2 electrons each.
So, the number of occupied p-orbitals in a Ne atom is 3.