Counting atoms

practice for atoms