Mass number:
The element's mass number is nothing but the sum of total number of neutrons and protons present in the element's nucleus. For example, if the mass number of nitrogen is 14, it means that there are 7 number of protons and 7 number of neutrons in the nucleus of the nitrogen.
The relationship between the number of proton and the neutron with that of mass number is that, the latter gives the count of the former. On contrary, the atomic number denotes the weight of the atom.