langchain/base_language.py/BaseLanguageModel/get_num_tokens
class BaseLanguageModel:    def get_num_tokens(self, text: str) -> int:
        """Get the number of tokens present in the text."""
        return len(self.get_token_ids(text))