N = STDIN.gets.strip.to_i
as = STDIN.gets.strip.split.map(&:to_i)

max_from_left = [as[0]]
answer = 1
1.upto(N-1) do |i|
  max_from_left[i] = [max_from_left[i-1], as[i]].max
  answer += 1 if max_from_left[i-1] <= as[i]
end
puts answer
