def METHOD_NAME(browser):
    """This function help in returning the notification count.
    Arguments:
    browser: browser where task runs
    """
    pagesource = browser.page_source
    soup = BeautifulSoup(pagesource, "html.parser")
    if soup.select_one("a[data-test-global-nav-link='notifications'] span.notification-badge__count") is not None:
        element = browser.find_element_by_css_selector(
            "a[data-test-global-nav-link='notifications'] span.notification-badge__count"
        )
        return int(element.text)
    return 0