n = int(input())
hlist = list(map(int,input().split()))
kijun = hlist[0]
ans = 1

for x in range(1,n):
  if kijun <= hlist[x]:
    if hlist[x] >= hlist[x-1] and max(hlist) >= hlist[x]:
    	ans += 1
    
print(ans)