def part1(data):
    """Return how often there's an increase from a number to the next."""
    numbers = list(map(int, data.splitlines()))
    return sum(numbers[i-1] < numbers[i] for i in range(1, len(numbers)))