function main(input) {
	var mt = input.split(/\n/)[0];
  	var height = input.split(/\n/)[1].split(/\s/);
  	var maxHeight = 0;
  	var num = 0;
  	for (var i = 0; i <= mt; i++) {
    	if (height[i] > maxHeight) {
        	maxHeight = height[i];
          	num++;
        }
    }
  	console.log(num);
}

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