n = int(input()) a = [int(input()) for _ in range(n)] cnt = 1 for i in range(n-1): if not a[i] < a[i+1]: cnt += 1 print(cnt)