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

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

int calc(int[] a) {
    int ans = 1;
    int h = a[0];
    for (int i = 1; i < a.length; i++) {
        if (h <= a[i]) ans++;
        h = max(h, a[i]);
    }
    return ans;
}

void main() {
    readint;
    auto a = readints;
    writeln(calc(a));
}

