code: def get_count(self, using):
          # TODO maybe can be removed soon
          
          obj = self.clone()
          obj.add_annotation(Count('pk'), alias='x_sf_count', is_summary=True)  # pylint: disable=no-member
          number = obj.get_aggregation(using, ['x_sf_count'])['x_sf_count']  # pylint: disable=no-member
          if number is None:
              number = 0
          return number
docs: Performs a COUNT() query using the current filter constraints.