Add a counter class

Counter makes it easy to increment the userid in the User class