The atomic number of an atom is determined by the number of protons it has. In this case, you mentioned that the atom has 6 protons. Therefore, the atomic number of the atom is 6.