              )
          ]
  
  
  class CursorPagination(BasePagination):
      """
      The cursor pagination implementation is necessarily complex.
 
</s> remove def _get_count(queryset):
    """
    Determine an object count, supporting either querysets or regular lists.
    """
    try:
        return queryset.count()
    except (AttributeError, TypeError):
        return len(queryset)


 </s> add  </s> remove         self.count = _get_count(queryset)
 </s> add         self.count = self.get_count(queryset)
    def get_count(self, queryset):
        """
        Determine an object count, supporting either querysets or regular lists.
        """
        try:
            return queryset.count()
        except (AttributeError, TypeError):
            return len(queryset)

              )
          ]
  
    def get_count(self, queryset):
        """
        Determine an object count, supporting either querysets or regular lists.
        """
        try:
            return queryset.count()
        except (AttributeError, TypeError):
            return len(queryset)

  
  class CursorPagination(BasePagination):
      """
      The cursor pagination implementation is necessarily complex.
keep keep add keep keep keep keep
 Add LimitOffsetPagination.get_count to allow method override (#5846)

* Add LimitOffsetPagination.get_count to allow method override

* Format method docstring 
rest_framework/pagination.py