The scientists realised that most of the mass of the atom was concentrated at the centre in a tiny nucleus, which must also have a positive charge, since it repelled the positive alpha particles
The number of protons equals the number of electrons in atoms, as protons and electrons have an equal but opposite charge and atoms have no overall charge