Question: how many atoms does mg(oh)2 have?
Answer: Mg(OH)2 has 1 atom of Mg, 2 atoms of O, and 2 atoms of H.