# -*- coding: utf-8 -*-
N= int(input())
b = list(map(int,input().split()))

max = b[0]
ans = 1
for i in range(0,N):
    flag = False
    for t in range(0,i):
        #print(t)
        if b[i] <= b[t]:
            flag = True
    if flag == True:
        ans += 1

print(ans)