N = int(input())
list = input().split()
M = 0
for i in range(0, N):
  is_cand = True
  for j in range(0, i):
    if list[j] > list[i]:
      is_cand = False
      break
    if is_cand:
      M += 1
print(M)