code: def count(self):
          
          if self._batch:
              raise CQLEngineException("Only inserts, updates, and deletes are available in batch mode")
  
          if self._result_cache is None:
              query = self._select_query()
              query.count = True
              result = self._execute(query)
              return result[0]['count']
          else:
              return len(self._result_cache)
docs: Returns the number of rows matched by this query