n = int(input())
hight = input().split()
cnt = 1
max = hight[0]
for i in range(n-1):
    if max <= hight[i+1]:
        cnt = cnt +1
        max = hight[i+1]
    else:
         continue
    
print(cnt)