Sorry if I'm stating the obvious here, but if you count along the periodic table horizotally from Lithium to Berilium, there are two- meaning 2 electrons in the 's' level. Count along from Sc to Zn and there are 10 elements- meaning 10 in the 'd' block. Count from B to Ne and there are 6- meaning a six electron capacity in the 'p' block.
Again, sorry if I'm stating the obvious here. In the first shell, we only have 2 electrons, which is just the 's' level. Onto the second shell- we have one 's'- 2 electrons. There are 6 electrons left over, so we have 6 in the 'd' block. Next is the same, as it holds only 8 electrons as well.
They're just a couple of basics.