n = gets.chop.to_i

line = ""
1.times do
  line = gets.chop.split.map(&:to_i)
end

#print n
#print line

current_max = 0
ans = 0

line.each do |k|
    if k >= current_max then
       ans += 1
       if k >= current_max then
          current_max = k
       end
    end
end
p ans