n = gets.to_i
numbers = []
n.times do
  numbers << gets.to_i
end
numbers.reverse!
colors = []
max = 0
count = 0
numbers.each do |number|
  if number >= max
    count += 1
    max = number
  end
end
puts count