n = gets.to_i
ary = gets.strip.split.map(&:to_i)
ans = []
count = 1
ary.each.with_index(1) do |k, i|
  if i == 1
    ans << k
  else
    if k >= ans.max
      ans << k
      count += 1
    end
  end
end
puts count

