n = int(input())
li = list(map(int,input().split()))
count = 1
count1 = 0
for i in range(1,n):
    for j in range(i):
        if li[i] >= li[j]:
            count1 += 1
        if count1 == i:
            count += 1
print(count)