n = int(input())
h = list(map(int, input().split()))
print(h)
a=1
flag=False
for j in range(0,n):
    for i in range(0,j):
        if h[i] <= h[j]:
            flag=True
        else:
            break
    if flag:
        a = a + 1
        flag=False

print(a)