def _latest_streak(year_of_commits):
    """
    Return our most recent streak in days, given a year of commits.
    """
    latest = 0
    for x in year_of_commits[::-1]:
        if x > 0:
            latest += 1
        else:
            return latest