N = int(input())
H = list(map(int,input().split()))
sum = 1
result = 0
if H[0] <= H[1]:
    result = H[1]
else:
    result = H[0]
for i in range(1,len(H)):
    if H[i-1] <= H[i] and result <= H[i]:
        sum += 1

print(sum)
