"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;
  let i=1;
  while(i<=n){
    let flg = true;

    let t = p.slice(0, i);
    let x = 0;
    while(x < t.length) {
      if(t[x] < p[i-1]) flg=false;
      x++;
    }

    if(flg)cnt++;
    i++;
  }

  console.log(cnt);
}

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