import std.stdio, std.string, std.conv;
import std.typecons;
import std.algorithm, std.array, std.range, std.container;
import std.math;

void main() {
	auto N = readln.split[0].to!int;
	auto H = readln.split.to!(int[]);
	
	int ans;
	foreach (i, height; H) {
		bool flag = true;
		foreach (h; H[0..i]) if (h > height) flag = false;
		if (flag) ++ans;
	}
	writeln(ans);
}

