Counts the tokens of text as the LLM the prompt goes to counts them, for example with its SDK's tokenizer.
text
typedef PromptTokenCounter = int Function(String text);