a=input()
b=input()

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