function main(input) {
  var N = Number(input.split("\n")[0]);
  var Narr = input.split("\n")[1];
  var arr = Narr.split(" ");

  var max = 0;
  var ans = 0;
  for(var i=0; i<N; i++){
    if(arr[i] >= max){
      max = Number(arr[i]);
      ans++;
    }
  }
  console.log(ans);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
