#!/usr/bin/env python3 import sys prev = None count = 0 for l in sys.stdin: curr = int(l.strip()) if prev and curr > prev: count += 1 prev = curr print(count)