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