def get_page_count(json: dict) -> int:
    """Input:
    json: dict - JSON as a dictionary retrieved via API call.

    Output:
    Total page count of the multi-page dataset as int.
    """
    try:
        page_count = json['data']['pagination']['numberOfPages']
    except Exception as e:
        print('Error while getting page count in JSON: ' + str(e))
        return False
    return page_count