N = int(input())
l = list(map(int, input().split()))

count = 0
mount = 1

for i in range(N):
    for j in range(i):
        if l[j]<=l[i]:
            count +=1
            if count == i:
                mount += 1
                count = 0

print(mount)