function Main(input) {
    var input_arr = input.split("\n");
    var n = parseInt(input_arr[0]);
    var h = input_arr[1].split(" ");
    h = h.map(x => parseInt(x))

    var count = 1;
    var max = h[0];
    for (var i = 1; i < n; i++) {
        if (h[i] >= max) {
            count += 1
        }
        max = Math.max(max, h[i])
    }
    console.log(count)
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));