Oxidation state
For example, if you put hydrogen and oxygen together, they form H2O, and not H3O because the oxidation number of oxygen is −2, which means that we need two +1 hydrogens for the numbers to balance.