def count_increases(measurements: list[int]) -> int:
    """
    Counts the number of times a measurement increases from the previous measurement.
    """
    return sum(1 for a, b in zip(measurements[:-1], measurements[1:]) if a < b)