The p sublevel has 3 orbitals, so can contain 6 electrons max.
The number of orbitals you get per sublevel is given by the magnetic quantum number, l.
More specifically, the number of orbitals you get for a given sublevel depends on the number of values that ml cantake.
The magnetic quantum number depends on the value of the angular momentum quntum number, l
, which in turn depends on the principal quantum number, n
SImply put, the principal quantum number gives the energy level on which the electron resides, the angular momentum quantum number gives you the sublevel, and the number of values you have for the magnetic quantum number gives you the number of orbitals you get per sublevel.
So, in order to have a p-sublevel, you need to have n>1, since the first energy level only has an s-sublevel.
Therefore, s-sublevel has a total of three p-orbitals: px, py, and pz