
def solve()

end

n = gets.to_i
a = gets.split.map(&:to_i)

ans = 1
for i in 1...n do
    ok = true
    for j in 0...i do
        if a[j] > a[i]
            ok = false
            break
        end
    end

    if ok
        ans = ans + 1
    end
end

puts ans