move utility for counting atoms from Equation to AtomCount