How many total atoms are in the following compound?

NaHCO3

A molecule of sodium bicarbonate (NaHCO3) contains one sodium atom (Na), one hydrogen atom (H), one carbon atom (C), and three oxygen atoms (O).

Therefore, there are a total of 6 atoms in the compound.