n = int(input())
h = [int(n) for n in input().split()]

a = 0
b = 1
ans = 1
while b != h.length-1:
    while h[a]<h[b]:
        ans = ans + 1
        a = a + 1
        b = b + 1
    a += 1
    b += 1

print(ans)