The number of electrons in a neutral atom with atomic number X and mass number Y will be:
X
Atomic number is the number of protons in the nucleus of an atom, which is characteristic of a chemical element and determines its place in the periodic table and number of protons is equal to the number of electrons to have electrical neutrality of that atom.