N = int(input())

height = list(input().split())
max_height = height[0]
result = 0

for i in range(N):
    if max_height <= height[i]:
        result = result + 1
        max_height = height[i]
        
print(result)
