Token Count calculates the number of tokens used in the retrieved context.
A required input for the metrics is encoder_name for tiktoken.
For example, for the most recent OpenAI models, you use cl100k_base as the encoder. For other models, you should look up the specific tokenizer used, or alternatively, you can also use approx to get an approximate token count which measures 1 token for every 4 characters.