N = int(input())
l = list(map(int, input().split()))
k = 0
m = 1

for i in range(1,len(l)):
    for j in range(i-1):
        if int(l[j]) > int(l[i]) :
            break
        else:
            k +=1
    if k != 0:
        m += 1
        
print(m)