function Main(input){
	tmp = input.split("\n");
	var a = parseInt(tmp[0]);
	var b = tmp[1].split(" ");
	var lim = b[0];
	var c = 0;
	
	for (var i = 0 ; i < a ; i++){
		if(lim <= b[i]){
			c++;
			lim = b[i];
		}
	}

	console.log(c);
}

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