code: def count(self, *_clauses, **kwargs):
          
          # NOTE: this does not have support for limit and offset since I can't
          # see how this is useful. Still, there might be compatibility issues
          # with people using these flags. Let's see how it goes.
          if not self.exists:
              return 0
  
          args = self._args_to_clause(kwargs, clauses=_clauses)
          query = select([func.count()], whereclause=args)
          query = query.select_from(self.table)
          rp = self.db.executable.execute(query)
          return rp.fetchone()[0]
docs: Return the count of results for the given filter set.