N = input()
str = input().split()
H = []
i = 0
j = 0
for i in range(N):
  H[i] = str[i]
flag = []
for i in range(N):
  for j in range(i):
    if H [i] < H[j]:
      flag[i] = 1
    else:
      flag[i] = 0
ans = 0
for i in range(N):
  if flag[i] = 0:
    ans = ans+1
print(ans)