added token_count()