num = int(input())
targ = []
for n in range(num):
    targ.append(int(input()))
ans = []
for n in range(num):

    if ans == []:
        ans.append(targ[n])
    elif ans[-1] < targ[n]:
        ans.append(targ[n])
    else:
        ans[-1] = targ[n]
print(len(ans))