function readInt(str) {
  return parseInt(str, 10);
}
function Main(raw: string) {
  const input = raw.split("\n");
  const [N]=input[0].split(" ").map(readInt);
  const H=input[1].split(" ").map(readInt);
  let count=0;
  let cur=0;
  count++;
  for(let i=0;i<N;i++){
    if(cur<=H[i]){
      count++;
      cur=H[i];
    }
  }
  //出力
  console.log("%d", count);
}

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