The sum of the numbers of protons and neutrons in the nucleus of an atom.