import numpy as np

#input

#N = 5

#H = [9,5,6,8,4]

N = int(eval(input()))

H = list(map(int,input().split()))

tmp = 0

for i in range(N):

    if H[i] == max(H[0:i+1]):

        tmp += 1



print(tmp)



#input

#N = 4

#H = [6, 5, 6, 8]

N = int(eval(input()))

H = list(map(int,input().split()))

tmp = H[0]

ans = 0

for i in range(N):

    if H[i] >= tmp:

        ans += 1

        tmp = H[i]

print(ans)



import numpy as np

# input
# N = 5
# H = [9,5,6,8,4]
N = int(eval(input()))
H = list(map(int, input().split()))
tmp = 0
for i in range(N):
    if H[i] == max(H[0 : i + 1]):
        tmp += 1
print(tmp)

# input
# N = 4
# H = [6, 5, 6, 8]
N = int(eval(input()))
H = list(map(int, input().split()))
tmp = H[0]
ans = 0
for i in range(N):
    if H[i] >= tmp:
        ans += 1
        tmp = H[i]
print(ans)

-import numpy as np - -# N = 5 -# H = [9,5,6,8,4] +# N = 4 +# H = [6, 5, 6, 8] -tmp = 0 +tmp = H[0] +ans = 0 -    if H[i] == max(H[0 : i + 1]): -        tmp += 1 -print(tmp) +    if H[i] >= tmp: +        ans += 1 +        tmp = H[i] +print(ans)