Count Atoms function
Wrote a function that will count the number of atoms in a function