def get_num_increases(data: list[int]) -> int:
    """
    Get the total number of times the value of the next element
    in the list is greater than the value of the previous element

    >>> get_num_increases([1, 3, 4, 2, 5])
    3
    """
    return sum(b > a for a, b in zip(data[:-1], data[1:]))