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