def count(self):
if self._batch:<EOL><INDENT>raise CQLEngineException("<STR_LIT>")<EOL><DEDENT>if self._result_cache is None:<EOL><INDENT>query = self._select_query()<EOL>query.count = True<EOL>result = self._execute(query)<EOL>return result[<NUM_LIT:0>]['<STR_LIT:count>']<EOL><DEDENT>else:<EOL><INDENT>return len(self._result_cache)<EOL><DEDENT>
Returns the number of rows matched by this query