n = int(input())
h = list(map(int, input().split()))
a = h
answer = 0
for i in range(n):
    if i == 0:
        answer += 1
        
    elif a[0] <= a[i] and a[1] <= a[i]:
        if a[i - 1] <= a[i]:
            answer += 1
            

print(answer)



