N = int(input())

H = []
h = input().split()
sum = 1

for i in range(N):
    int(h[i])
    H.append(h[i])

max = H[0]

for i in range(N-1):
    if max <= H[i+1]:
        sum += 1
        max = H[i+1]

print(sum)