Add a getter function for the local atom count