def get_query_range(count: int, page: int):
    """Generate query for range of the search results

    :type count: ``int``
    :param count: Max amount of the search results

    :type page: ``int``
    :param page: Current page, depends on count

    :return: A query range
    :rtype: ``str``
    """
    if page < 1:
        raise ValueError('page value can\'t be less than  1')

    if count < 1:
        raise ValueError('max results value can\'t be less than  1')

    return f'from={(page-1)*count + 1}&to={page*count}'