Hi, The atomic number of an element depends on how many protons there are in one atom of that element. If the atom has 3 protons, its atomic number will be 3.
Hope this helps! If my answer was not clear enough or you’d like further explanation please let me know.