Implemented method to calculate the number of neutrons in an atom