import std.stdio, std.conv, std.string, std.array, std.range, std.algorithm;

void main(){
  long n;
  readf("%d\n", &n);
  long[] hs = readln.strip().split().map!(to!long).array;

  long cnt = 0;
  long max = -1;
  foreach (h; hs) {
    if (max <= h) {
      cnt++;
      max = h;
    }
  }
  writeln(cnt);
}
