there can be max 3 electrons with spin no = -1/2 in 2p orbital
it means that in main shell L in sub shell 2p has electrons which spin anti clockwise
The answer is 3. There are totally six electrons in the orbitals px , py and pz. 3 will have clockwise spin and 3 will have anti clockwise spin.
we can use here that formula