If an atom has an atomic number of 10, how many electrons does it have?
You just have to remember these basic rules:
(1) The atomic number is equal to the number of protons in that atom.
(2) If the atom is neutrally charged (or zero charged), the number of electrons is the same as the number of protons.
Otherwise, negative charge means that the atom gained electrons, and for positive charge the atom lost electrons.