code: def hasannotation(self,Class,set=None):
          
          return sum( 1 for _ in self.select(Class,set,True,default_ignore_annotations))
docs: Returns an integer indicating whether such as annotation exists, and if so, how many.
  
          See :meth:`AllowTokenAnnotation.annotations`` for a description of the parameters.