n = int(input())
s = input().rstrip().split(' ')

count = 1

for i in range(1,n):
  flag = True
  for j in range(0,i-1):
    if(s[j]>s[i]):
      flag = False
      break
  if(flag==True):
    count += 1
print(count)