def METHOD_NAME():
    """This function login to the linkedin page return the number of pages of connection
    :return: number of pages
    """
    creds = read_creds("credentials.json")
    # open login page
    browser.get(pageurl)
    elementID = browser.find_element_by_id("username")
    elementID.send_keys(creds["username"])
    elementID = browser.find_element_by_id("password")
    elementID.send_keys(creds["password"])
    elementID.submit()
    url = browser.current_url
    browser.get(url)
    connectionclass = "mn-connection-card__details"
    numberofpages = 0
    time.sleep(2)
    last_height = browser.execute_script("return document.body.scrollHeight")
    while True:
        # Scroll down to bottom
        browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
        elements = browser.find_elements_by_class_name(
            "artdeco-pagination__indicator--number"
        )
        if len(elements) > 0:
            numberofpages = int(elements[-1].text)
            return numberofpages
        # Wait to load page
        time.sleep(2)
        # Calculate new scroll height and compare with last scroll height
        new_height = browser.execute_script("return document.body.scrollHeight")
        if new_height == last_height:
            break
        last_height = new_height
    return 0