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

ans = 0
for i in range(N):
    flag = True
    for j in range(N-1):
        if lst[j] > lst[i]:
            flag = False 
    if flag:
        ans = ans + 1

print(ans)