n = gets.to_i
m = gets.split(" ").map(&:to_i)
count = 1
check = 0

(1..n-1).to_a.reverse.each do |i|
  (0..i-1).to_a.reverse.each do |j|
    if m[i] < m[j]
      check += 1
    end
  end
  if check == 0
    count += 1
  end
  check = 0
end
puts count