When a stable atom gains or loses its electrons then that’s when it becomes the ion.
Carbon dioxide (CO2)
in the process of respiration, oxygen and glucose react to form carbon dioxide and water.
Counting atoms in a compound can be done by taking one element at a time and multiplying the subscript of the element and the number of molecules of the compounds. For example, H2O, there are two atoms of H adn 1 atom of oxygen.