def generate_listing_urls(url: str, max_count: int):
    """Generate urls for all the pages, based on the number of pages.

    Creating urls such as:
    * https://www.immowelt.at/liste/wien-10-favoriten/wohnungen/mieten?cp=2
    * https://www.immowelt.at/liste/wien-10-favoriten/wohnungen/mieten?cp=3

    Where "?cp=x" is the page number, and
    "https://www.immowelt.at/liste/wien-10-favoriten/wohnungen/mieten" is the
    base-url.

    Args:
        url (str): Base-url to append to.
        max_count (int): How many pages/urls that should be generated.

    Returns:
        list: A list with all the urls following url syntax for Immowelt.
    """
    urls = [
        "?".join([url, f"cp={count}"])
        for count
        in range(2, max_count + 1)
    ]
    return [url] + urls