Question: find how many atoms of an element are in a compound?
Answer: One mole of a compound contains Avogadro's number (6.022 x 1023) of molecules (molecular compound) or formula units (ionic compound). The molar mass of a compound tells you the mass of 1 mole of that substance. In other words, it tells you the number of grams per mole of a compound.