Why can we not figure out the number of valence electrons in transition metals?

Please help... Thanks!