N=int(input())

list=[]
for i in range(N):
     list.append(int(input()))
#print(list)
a = 0
for k in range(N):
    list_n = []
    for i in range(k+1):
        list_n.append(list[i])
       #print(l_even)
    #print(max(list_n))
    if list[k] == max(list_n):
        a = a + 1
    else:
        pass
print(a)