code: def count(self):
          
  
          try:
              return self.object_list.count()
          except (AttributeError, TypeError):
              # AttributeError if object_list has no count() method.
              # TypeError if object_list.count() requires arguments
              # (i.e. is of type list).
              return len(self.object_list)
docs: Returns the total number of objects, across all pages.