Why is the number of electrons not included in the atomic mass?
Because the mass contributed by electrons is dwarfed by the nuclear contribution.
Mass of an electron,
Mass of a proton,
There exists three orders of magnitude difference. Electronic mass can be ignored to a first approximation.