The atomic number of chlorine is 17, which means that a neutral chlorine atom has 17 protons in its nucleus. Since the atom is electrically neutral, it must also have 17 electrons orbiting the nucleus to balance the positive charges of the protons.
Therefore, when the chlorine atom is electrically neutral, it has a total of 17 electrons.