"use strict"
 
function Main(s) {
  s = s.trim().split('\n');
  const n = Number(s[0]);
  const p = s[1].trim().split(' ').map(Number);
  let cnt=0;
  for(let i=1; i<=n; i++){
    let flg = true;
    for(let j=1; j<=i; j++){
      if(p[i-1] > p[j-1]){
        flg = false;
        break;
      }
    }
    if(flg)cnt++;
  }
  console.log(cnt);
}

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