function myOut(text){console.log(text);}//standard output
function Main(input) {
	input = input.trim();
	//input = input.split(" ");
	input = input.split("\n");
	//input = input.split(" ").map((a)=>Number(a));
	//input = input.split("\n").map((a)=>Number(a));
  var len = parseInt(input[0]);
  var list = input[1].split(" ").map((a)=>Number(a));
  var max = 0;
  var output = 0;
  for(var i = 0; i < len; i++){
    if(max <= list[i]){
       max = list[i];
      output++;
       }
  }
      myOut(output);
}

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