Count the number of electrons in each ion.