def count(self, q='*:*', fq=None):
        """Return the number of entries that match query."""
        params = {'q': q, 'rows': '0'}
        if fq is not None:
            params['fq'] = fq
        res = self.search(params)
        hits = res['response']['numFound']
        return hits
def count ( self , q = '*:*' , fq = None ) : params = { 'q' : q , 'rows' : '0' } if fq is not None : params [ 'fq' ] = fq res = self . search ( params ) hits = res [ 'response' ] [ 'numFound' ] return hits
Return the number of entries that match query.