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