I still don't understand how to caluculate the number of electrons in the p-orbital. Where do the other two electrons come from to make it three

See my response later.