(self, name: CountsNameType)
return func(self.doc)
Count the number of times each value for the feature specified by ``name``
        appear as token annotations.

        See Also:
            :mod:`textacy.text_stats.counts`
Count the number of times each value for the feature specified by ``name``
        appear as token annotations.
Count the number of times each value for the feature specified by name appear as token annotations .
def counts(self, name: CountsNameType) -> Dict[str, int] | Dict[str, Dict[str, int]]:
        """
        Count the number of times each value for the feature specified by ``name``
        appear as token annotations.

        See Also:
            :mod:`textacy.text_stats.counts`
        """
        try:
            func = getattr(counts, name.lower())
        except AttributeError:
            raise ValueError(
                errors.value_invalid_msg("name", name, ["morph", "tag", "pos", "dep"])
            )
        return func(self.doc)
def counts ( self , name : CountsNameType ) -> Dict [ str , int ] | Dict [ str , Dict [ str , int ] ] : try : func = getattr ( counts , name . lower ( ) ) except AttributeError : raise ValueError ( errors . value_invalid_msg ( "name" , name , [ "morph" , "tag" , "pos" , "dep" ] ) ) return func ( self . doc )