Unsuccessfully tried synchronising the counter class's methods.