function Main(input) {
    var N = parseInt(input[0])
    var H = input.slice(1);
    var count = 0;
    var maxH = 0;
    H.forEach(element => {
        var h = parseInt(element);
        if(maxH <= h) {
            count++;
            maxH = h;
        }
    });
    console.log(count);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));
