function Main(input){
  input = input.split("\n");
  var inputVal1 = input[0].split(" ");
  var inputVal2 = input[1].split(" ");
  var maxVal = parseInt(inputVal2[0]);
  var i = 1;
  var count = 1;
  for ( i=1 ; i < inputVal2.length ; i++ ) {
    
    if (maxVal <= parseInt(inputVal2[i])) {
      
      maxVal = parseInt(inputVal2[i]);
      count = count +  1;
    }
  }
  console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));