n = int(input())
h = [int(item) for item in input().split()]

c = 0 #count

for i in range(n):
  flag=0
  for j in range(i-1):
    if h[j] > h[i]:
      flag=1
      break
    if flag == 0:
      c+=1
print(c)