def METHOD_NAME(self, request, count: int) -> Tuple[int, int]:
    """Returns the offset and limit to be used in a raw SQL query"""
    page_size = self.get_page_size(request)
    # pass an empty object_list since we are not handling any pagination
    # at this point, we are specifically interested in the count
    paginator = self.django_paginator_class([], page_size, count_override=count)
    page_number = paginator.validate_number(
        self.get_page_number(request, paginator)
    )
    offset = (page_number - 1) * paginator.per_page
    limit = paginator.per_page
    return (offset, limit)