function Main(input) {
    input = input.split('\n');
    var N = parseInt(input[0], 10);
    var hList = input[1].split(' ');
    var max = 0;
    var count = 0;
    for (var i = 0; i < N; i++) {
        var h = parseInt(hList[i], 10);
        if(h >= max) {
            count++
            max = h;
        }
    }
    console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));