def count(self, field='*'):
        rows = self.get_count_query().select(bypass_safe_limit=True)
        return list(rows[0].values())[0]
Returns a COUNT of the query by wrapping the query and performing a COUNT
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/query.py/Query.count