'Return the total number of objects, across all pages.'

@cached_property
def count(self):

    try:
        return self.object_list.count()
    except (AttributeError, TypeError):
        return len(self.object_list)
