for each compound count how many atoms of each element there are

CO2 C6H12O6 Li20​