function Main(input) {
  var lfArgs = input.split('\n');
  var n = parseInt(lfArgs[0]);
  var hs = lfArgs[1].split(' ');
  var max = parseInt(hs[0]);
  var count = 1;
  for (var i = 1; i < n; i++) {
    if (max <= parseInt(hs[i])) {
      max = hs[i];
      count++;
    }
  }
  console.log(count);


}

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