The tokenizer belongs to the engine, not to a conversation, so a virtual session answers this as accurately as a live one.
@override Future<int?> tokenCount(String text) => client.tokenCount(text);