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