def part1(data: list[str]):
    """Counts the number of times a depth measurement
    increases from the previous measurement

    :param data: list of depths as strings
    :return: number of increases
    """
    depths = list(map(int, data))
    last = depths[0]
    counter = 0

    for depth in depths:
        if depth > last:
            counter += 1
        last = depth

    return counter