function main(input) {
    const N = parseInt(input.split("\n")[0]);
    const Hs = input.split("\n")[1].split(" ").map(i => parseInt(i));
    let count = 0;
    Hs.map((hi, i) => {
        let f = true;
        Hs.slice(0, i).map(hj => {
            if (hj > hi) {
                f = false;
            }
        })
        if (f) {
            count += 1;
        }
    })
    console.log(count);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));