N = int(input()) A = list(map(int, input().split())) ans = 0 pre = -1 for a in A: if a > pre: ans += 1 pre = a else: pre = -1 print(ans)