I can hopefully give some more meaning to this answer:
For the d subshell, l = 2. ml =5 (b.c. from l, you get -2,-1,0,1,2). Thus the d subshell contains 5 possible orbitals each of which can fit 2 electrons. Hunds rule says that the orbitals will either want all unpaired electrons in each of these 5 orbitals or all paired electrons. Thus to have all unpaired you would need 5 electrons. Something like Cr has only 4 electrons and one unfilled orbital which means that its gonna snatch that electron from the s orbital and add it to its unfilled 5th orbital. Cu has 9 electrons which means that 4 will be paired but that the 5th orbital will have one unpaired. To be more stable it too will snatch that electron from the s orbital and add it to its 5th orbital to give 5 fully paired orbitals and 10 total electrons.
Hope this helps!