N = int(input())
Hlist = list(map(int, input().split()))

H1 = Hlist[0]
H2 = Hlist[1]

ans = 1
if H2 >= H1:
    ans += 1

for i in range(2, N):
    if Hlist[i] >= H1 and Hlist[i] >= H2 and Hlist[i] >= Hlist[i-1]:
        ans += 1

print(ans)
