added exits method for counter