src/transformers/models/bert_japanese/tokenization_bert_japanese.py/BertJapaneseTokenizer/vocab_size
class BertJapaneseTokenizer:    def vocab_size(self):
        if self.subword_tokenizer_type == "sentencepiece":
            return len(self.subword_tokenizer.sp_model)
        return len(self.vocab)