Return number of epiweeks in a year

def epiweeks_in_year(year: int) -> int:
    """
    Return number of epiweeks in a year
    """

    if date_to_epiweek(epiweek_to_date(Epiweek(year, 53))).year == year:
        return 53
    else:
        return 52