Question: how many atoms of carbon dioxide?
Answer: For CO2 there is one atom of carbon and two atoms of oxygen. For H2O, there is one atom of oxygen and two atoms of hydrogen. A molecule can be made of only one type of atom.