n = int(input())
h = list(map(int, input().split()))
ans = 1
for i in range(1, n):
    for j in range(1, n):
        c = 1
        if h[i-j] <= h[i]:
            c += 1
    if c == n:
        ans += 1
print(ans)