function Main(input){
  
  var str = input.split("\n");
  var n = str[0];
  //var tmph = str[1];
  var h = str[1].split(" ");
  
  //console.log("str[1]:"+str[1]);
  
  var kekka = 0;
  //var kekka = 0;
  //arr.indexOf(Math.max.apply(null,arr) 
  
  var highest = 0;
  
  for(i=0;i<n;i++){
    if(highest<=h[i]){
      highest = h[i];
      kekka++;
    }//if end
    
  }//for end
  
    
   console.log(kekka);
}//function end
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));