"use strict";
function main(input) {
    const args = input.split('\n');

    const N = parseInt(args[0]);
    const second = args[1];

    const Hs = second.split(' ');

    let hotels = [];

    let ans = 0;

    for(let i = 0; i < N; i++) {
        hotels.push(parseInt(Hs[i]))
    }

    let max_height = hotels[0];

    for(let i = 0; i < N; i++) {
        if(max_height <= hotels[i]) {
            ans++;
            max_height = hotels[i];
        }
    }
    console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
