def count_equal_from_left(original: list, new: list) -> int:
    """
    Count the number of equal elements starting from the element
    with index 0.
    """
    for index, (e1, e2) in enumerate(zip(original, new)):
        if e1 != e2:
            return index
    return min(len(original), len(new))