N = int(input())
a = list(map(int,input().split()))
k = 0
for  i in range(N):
        if i == 0:
                k +=1
        elif a[i]>=a[0] and a[i]>=a[1] and  a[i] >= a[i-1]:
                k +=1
print(k)
                                
