A proton carries one unit of positive charge, +1.602×10−19 C, exactly opposite to an electron's charge. Its mass is about 1.007 u, where u (the atomic mass unit) is about 1.66×10−27 kg. That is about 1,836 times the mass of an electron, so protons and neutrons supply nearly all of an atom's mass while electrons supply almost none.
The proton count is the element. Hydrogen has 1, helium 2, carbon 6, oxygen 8, gold 79, and the periodic table is simply the list of elements in order of proton count. Add one proton to a carbon nucleus and it becomes nitrogen, but that happens only in nuclear processes, such as those inside stars and reactors. Chemical reactions involve only the outer electrons, so a sodium atom that loses an electron to become Na+ is still sodium, with 11 protons.
Charge and proton count are easy to mix up. The charge of a particle is protons minus electrons, so it changes whenever electrons come or go: Cl− has a charge of −1 but still has 17 protons. To find the proton count, look up the element, never the charge. Protons stay packed in the nucleus despite repelling each other because the strong nuclear force pulls nucleons together at very short range.
Think of it like this. A proton count works like a jersey number in a league that never reuses numbers: 6 always means carbon, 8 always oxygen. Electrons and neutrons are the player's gear, which can change without changing the player. Unlike a jersey, the number cannot be swapped by ordinary means; only a nuclear reaction can change it.
Core idea. The number of protons in the nucleus decides which element an atom is. Electrons can come and go in chemical reactions, but the proton count changes only in nuclear reactions, so it is the atom's permanent identity.