n = int(input())
h = [0]*n
h = input().split(" ")
for i in range(n):
    h[i] = int(h[i])

counter = 0

#
for i in range(n):
   # print("i=",i)
    
    counter_2 = 0
    for j in range(0,i+1):
       # print("h[", j, "]=" ,h[j])
        if h[i] >= h[j]:
            counter_2 += 1
        else:
            counter_2 += 0
        
    if counter_2 == i:
        counter += 1
    
   # print("\n")

print(counter)