count can now be accessed from outside