function Main(input) {
  var list = input.split("\n");
  var listH = list[1].trim().split(" ").map(s => parseInt(s, 10));
  var N = list[0];
  var i = 0;
  var count = 1;
  var check = 0;
  var Max = 0;
  
  if (check == 0){
    for (i=0;i<N;i++){
      if (listH[i] >= Max){
        Max = listH[i]
      }
      if (Max <= listH[i+1]){
        count = count+1;
      }
    }
  }
  console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));