n = int(input())
h = list(map(int, input().split()))
view = 1
for i in range(len(h)):
    count = 0
    for row in h:
        if row <= h[i]:
            count += 1
    if count == len(h)-1:
        view += 1
print(view)