n = int(input())
h = list(map(int, input().split()))

ans_index = [0]
if h[1] >= h[0]:
    ans_index.append(1)
for i in range(2, n):
    if h[i] >= max(h[:i]):
        ans_index.append(i)
# print(ans_index)
print(len(ans_index))