def get_sub_page_count(page_object) -> int:
    """
    Get number of sub pages in a category from a category page object.

    :param page_object: BeautifulSoup4 page object.
    :return: number of sub pages in category.
    """
    return int(page_object.find("span", {"class": "page-count"}).text)