N = int(input())
num = list(map(int, input().split()))
tmp = 0
state_tmp = 0
state = False
result = 1
#i番目を比べる
for i in range(N):
    if i != 0:
        for j in range(N):
            if num[j] <= num[i]:
                state_tmp +=1
        if state_tmp ==  N:
            if tmp <= num[i]:
                result +=1
            tmp = num[i]
        state_tmp = 0
    else:
        tmp = num[i]
        state_tmp = 0
    
print(result)