n = int(input())

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

output = 0
prev_h = 0

for i in range(n):
  if i == 0:
    prev_h = 0
  else:
    prev_h = h[i-1]
  if prev_h < h[i]:
    output = output + 1

print(output)
