code: def count(self, Class, set=None, recursive=True,ignore=True):
          
          if self.mode == Mode.MEMORY:
              s = 0
              for t in self.data:
                  s +=  sum( 1 for e in t.select(Class,recursive,True ) )
              return s
docs: See :meth:`AbstractElement.count`