To determine the number of electrons in an atom, we need to consider the atomic number and the number of protons. The atomic number of an element is equal to the number of protons in its nucleus. In this case, the atomic number is 8.
Since atoms are electrically neutral, the number of electrons in an atom must be equal to the number of protons. Therefore, the atom with 8 protons also has 8 electrons.