N = int(input())
H = list(map(int,input().split()))

a = 1
b = list()
for i in range(N):
    try:
        if H[i+1] - H[i] > 0:
            a += 1
        else:
            break
    except:
        pass
print(a)