def count_rounds(half):
    """
    Counts how many rounds were won in the half.
    """
    rounds = 0
    for img in half.find_all("img"):
        if not "emptyHistory.svg" in img["src"]:
            rounds += 1
    return rounds