def get_num_terms(self, non_text: bool = False) -> int:
        '''
        Returns
        -------
        The number of terms registered in the term doc matrix
        '''
        if non_text:
            return self.get_num_metadata()
        return len(self._term_idx_store)

        Returns
        -------
        The number of terms registered in the term doc matrix
        
scattertext/TermDocMatrixWithoutCategories.py