N = int(input())

if N == 1:
    print("1")
    exit()
if N == 0:
    print('0')
    exit()
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)