def get_count(self, using):
            obj = self.clone()
            obj.add_annotation(Count('pk'), alias='x_sf_count', is_summary=True)
            number = obj.get_aggregation(using, ['x_sf_count'])['x_sf_count']
            if number is None:
                number = 0
            return number
Performs a COUNT() query using the current filter constraints.
dataset/ETHPy150Open django-salesforce/django-salesforce/salesforce/backend/query.py/SalesforceQuery.get_count