n=int(input())
#s=input()
#a,b=map(int,input().split())
#A=[list(map(int,input().split()))for i in range(n)]
h=list(map(int,input().split()))
a=h[0]
cnt=1
for i in range(1,n):
    if h[i-1]<h[i] and a<=h[i]:
        cnt+=1
print(cnt)
