fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).unwrap();
    let n: u32 = n.trim().parse().unwrap();
    let mut h = String::new();
    std::io::stdin().read_line(&mut h).unwrap();
    let hs: Vec<u32> = h.trim().split_whitespace()
            .map(|x| x.parse().unwrap()).collect();
//    println!("{}", n);
    let mut ans = 0;
    let mut i = 0;

    while ( i < n ) {
//        println!("{}", i);
        if ( i == 0) {
            ans += 1;
            i += 1;
        }
        let mut j = 1;
        while ( j <= i ) {
            if ( hs[(i-j) as usize] <= hs[i as usize]) {
                j += 1;
            } else {
                break;
            }
            if ( j > i ) {
                ans += 1;
                break;
            }
        }
        i += 1;
    }
    println!("{}", ans);
}