  
      return a // b
  
  
  def _get_count(queryset):
      """
      Determine an object count, supporting either querysets or regular lists.
      """
      try:
          return queryset.count()
      except (AttributeError, TypeError):
          return len(queryset)
  
  
  def _get_displayed_page_numbers(current, final):
      """
      This utility function determines a list of page numbers to display.
      This gives us a nice contextually relevant set of page numbers.
  
 
</s> remove         self.count = _get_count(queryset)
 </s> add         self.count = self.get_count(queryset)
  
      return a // b
  
  










  def _get_displayed_page_numbers(current, final):
      """
      This utility function determines a list of page numbers to display.
      This gives us a nice contextually relevant set of page numbers.
  
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep 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