N = int(input())
H = [ii for ii in map(int, input().split())]

count_ans = 0
count_big = 0
for ii in range(len(H)):
    if ii == 0:
        tmp = H[0]
        count_ans += 1
    else:
        if tmp < H[ii]:
            count_big += 1
            count_ans += 1
        elif tmp == H[ii]:
            if count_big == 0:
                count_ans += 1

print(count_ans)