Atom counting