a token counter