n = int(input())
h = list(map(int, input().split()))
count = 1
for i in range(1, n):
    if all(h[i] >= h[j] for j in range(0, i-1)):
        count += 1
if h[0] > h[1]:
    print(count-1)
else:
    print(count)