n = int(input())
h = list(map(int, input().split()))

flag = True
ans = 1
for i in range(n-1, -1, -1):
  for j in range(i-1, -1, -1):
    if h[i] < h[j]:
      flag = False
      break
  if flag:
    ans+=1
print(ans)