n = int(input())

L = list(map(int,input().split()))

mountain = int(1)
for i in range(1, n):
    for j in range(i):
        if int(L[j]) >= int(L[i]):
            break
        else:
            mountain += 1
            break

print(mountain)
