def METHOD_NAME(self):
    first_after = self.number * self.page_size
    padding_length = self.pad_pages * self.page_size
    queryset = self.unfiltered_queryset[first_after:first_after + padding_length + 1]
    c = getattr(queryset, 'count', None)
    if callable(c) and not inspect.isbuiltin(c) and method_has_no_args(c):
        return c()
    return len(queryset)