"use strict"
function main(arg) {
    const N = arg.split("\n")[0].split("").map((x)=>{return parseInt(x)})
    const inputs = arg.split("\n")[1].split(" ").map((x)=>{return parseInt(x)})
    let i, max = 0, ans = 0
    for (i = 0; i < N; ++i){
        if (max <= inputs[i]){
            max = inputs[i]
            ans++
        }
    }
    console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));