N = gets.chomp.to_i
H = gets.split(' ')
h = H.map{|x| x.to_i}

i = 0
max = 0
count = 0
N.times do
    if h[i] >= max then
        max = h[i]
        count = count + 1
    end
    i = i + 1
end

print count