Atomic mass
Any mass defect due to nuclear binding energy is experimentally a small fraction (less than 1%) of the mass of equal number of free nucleons. When compared to the average mass per nucleon in carbon-12, which is moderately strongly-bound compared with other atoms, the mass defect of binding for most atoms is an even smaller fraction of a dalton (unified atomic mass unit, based on carbon-12). Since free protons and neutrons differ from each other in mass by a small fraction of a dalton (about 0.0014 u), rounding the relative isotopic mass, or the atomic mass of any given nuclide given in daltons to the nearest whole number always gives the nucleon count, or mass number. Additionally, the neutron count (neutron number) may then be derived by subtracting the number of protons (atomic number) from the mass number (nucleon count).
Law of definite proportions
A related early idea was Prout's hypothesis, formulated by English chemist William Prout, who proposed that the hydrogen atom was the fundamental atomic unit. From this hypothesis was derived the whole number rule, which was the rule of thumb that atomic masses were whole number multiples of the mass of hydrogen. This was later rejected in the 1820s and 30s following more refined measurements of atomic mass, notably by Jöns Jacob Berzelius, which revealed in particular that the atomic mass of chlorine was 35.45, which was incompatible with the hypothesis. Since the 1920s this discrepancy has been explained by the presence of isotopes; the atomic mass of any isotope is very close to satisfying the whole number rule, with the mass defect caused by differing binding energies being significantly smaller.