What do elements within a group have a similar number of?

Chemical elements that are in the same group within the periodic table have the same numbers of electrons in the outermost shell.

This gives them similar reactivity.