N = int(input())
H = list(map(int, input().split()))

ans = 0
if N == 1:
  ans = 0
else:
  h1 = H[0]
  h2 = H[1]
  for i in range(1,N):
    if H[i] >= h1 and H[i] >=h2 and H[i] >= H[i-1]:
      ans += 1
    
print(ans+1)
  