If the compound exists as a molecule then the formula describes the number and types of atoms that make up the molecule. If the compound exists as a lattice such as sodium chloride or silicon dioxide the formula describes the ratio of the number and types of atoms that make up the lattice.
The number of atoms of each element present in the compound.
A chemical formula shows the kinds and number of atoms present in a compound.