a=input()
b=input()

b=b.split(" ")
count=1
m=0

for x in range(len(b)-1):
    for i in range(len(b)-1):
        if b[x]<=b[x+1]:
            m=m+1
    if m==len(b)-1:
        count=count+1
print(count)