Counting Elements In A Chemical Formula