mt_count=int(input())
heights = list(map(int, input().split()))
count = 1
heights.reverse()
for i in range(len(heights)-1):
  check_flag = 1
  for j in range(len(heights)-1):
    if heights[i] < heights[j+1]:
      check_flag = 0
  if check_flag == 1:
    count += 1

print(count)