Valence electrons of elements except the transition elements – the main group elements. While the period number indicates the number of shells, the group number indicates the number of valence electrons in the outermost shell. Specifically, the number in the ones' place. It can never be replaced rarely anyways.