If an atom of an element contains 17 electrons and 18 neutrons, find the number of protons, atomic number and mass number of the element.
The atom of an element X has 18 protons, 22 neutrons and 18 electrons. The atomic number of the element is ___