no because they are two diffrent things
To count the number of valence electrons we look at the electronic configuration and add the electrons form the electronic shell with the highest principal quantum number.
Rb: [Kr] 5s¹ - 1 valence electron
Xe: [Kr] 5s² 4d¹⁰ 5p⁶ - 8 valence electrons
Sb: [Kr] 5s² 4d¹⁰ 5p³ - 5 valence electrons
I: [Kr] 5s² 4d¹⁰ 5p⁵ - 7 valence electrons
In: [Kr] 5s² 4d¹⁰ 5p¹ - 3 valence electrons
Rank from most to fewest valence electrons:
Xe > I > Sb > In > Rb