var lines = [];

var readline = require('readline');
var rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout,
});

rl.on('line', function (x) {
    lines.push(x);
});

rl.on('close', function () {
    var tmp = lines.shift();
    var N = Number(tmp[0]);
    var H = Array(N);

    tmp = lines.shift().split(" ");
    for (var i = 0; i < N; i++) {
        H[i] = Number(tmp[i]);
    }
    var max = 0; var result = 0;
    for (var i = 0; i < N; i++) {
        if (max <= H[i]) { result++; max = H[i]; }
    }

    console.log(result);
});