use proconio::input;
use std::cmp::*;

fn main() {
    input! {
        n: usize,
        h: [u64;n],
    }

    let ans = h
        .iter()
        .zip(h.iter().scan(0, |m, &now| {
            *m = max(*m, now);
            Some(now >= *m)
        }))
        .filter(|(_, x)| *x)
        .count();

    println!("{}", ans);
}
