Find moles of elements in a compound