def count(self):
<EOL>_rows = self._solr_params.get('<STR_LIT>', None)<EOL>_start = self._solr_params.get('<STR_LIT:start>', <NUM_LIT:0>)<EOL>if not self._solr_cache:<EOL><INDENT>self.set_params(rows=<NUM_LIT:0>)<EOL>self._exec_query()<EOL><DEDENT>number = self._solr_cache.get('<STR_LIT>', -<NUM_LIT:1>)<EOL>if _start >= number:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>number -= _start<EOL>if _rows is None:<EOL><INDENT>return number<EOL><DEDENT>return number if number < _rows else _rows<EOL><DEDENT>
Counts the number of results that could be accessed with the current parameters.

        :return:  number of objects matches to the query
        :rtype: int