const main = (input) => {
  var inputs = input.trim().split("\n")[1].split(" ");
  var base = inputs[0]-0;
  var ans = 0;
  for(var i=0;i<inputs.length;i++){
    var b = inputs[i]-0;
    if(base <= b){
      ans++;
      base = b;
    }
  }
  console.log(ans);
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));
