The s level contains just one orbital that it can be filled just with 2electrones, p' level has three orbitals(px,py,pz) and can be added just 6electrons, the d' level (5orbitals=10electrones), the f' level( 7orbitals= 14electrones) .
Remember each orbital has just 2electrones that are antiparalel.