N = int(input())
arr = input().split(" ")

if N == 1:
  print(1)
elif N == 2:
  if int(arr[1]) > int(arr[0]):
    print(2)
  else:
    print(1)
else:
  count = 1
  for i in range(len(arr)):
    if i == 0:
      pass
    else:
      if int(arr[i -1]) <= int(arr[i]):
        count += 1
  print(count)
  