The atomic number is defined as the number of: