n=gets.to_i
heights=gets.split.map(&:to_i)
count = 1
maxHeight=heights[0]
(1...n).each do |index|
  nowHeight = heights[index]
  if nowHeight >=  maxHeight
    maxHeight = nowHeight
    count += 1
  end
end
puts count