N = int(input())
H = list(map(int, input().split()))
count = 0
for i in range(1, N):
    for j in range(0, i-1):
        if H[j] > H[i]:
            break
        count += 1
if count == 0:
    print(1)
else:
    print(count)