There are 2: One Sodium (Na) atom and one Chlorine (Cl) atom. This is common salt. There are many other types of salts with many different atomic structures.
Salt (NaCl) is formed by ionic bonds, so it does not come in molecules. Instead, it is called a formula unit, and there are two atoms in this particular one.