n = int(input())
h = list(map(int, input().split()))
 
ans = 1
if h[0] <= h[1]:
  ans += 1
 
for i in range(2,n):
  if h[0] <= h[i]:
    if h[1] <= h[i]:
      if h[i-1] <= h[i]:
        ans += 1
print(ans)