Question: how many carbon atoms are in a gram?
Answer: We know that one mole of any substance contains 6.0225X10^23 particles(atoms, molecules, ions, etc.). Thus 12g of Carbon contains 6.0225X10^23 atoms of Carbon. Therefore 1g Carbon will contain (6.0225X10^23)/12 atoms of Carbon.