Counts the number of tokens in the given text.
This method encodes the input text using a private _encode method and
calculates the total number of tokens in the encoded result.
| Name | Type | Description |
|---|---|---|
text* | str | The input text for which the token count is calculated. |