Null on the web: the runtime counts a conversation's tokens (getTokenCount()), but has no tokenizer for a text.
getTokenCount()
@override Future<int?> tokenCount(String text) => Future.value(null);