code: def count(self, Class, set=None, recursive=True,  ignore=True, node=None):
          
          return sum(1 for i in self.select(Class,set,recursive,ignore,node) )
docs: Like :meth:`AbstractElement.select`, but instead of returning the elements, it merely counts them.
  
          Returns:
              int