#![allow(unused_imports)]

use text_io::*;
use proconio::*;
use std::collections::*;
use std::process::exit;
use std::cmp::*;
use itertools::Itertools;

fn main() {
    input! {
    a:usize,
    b:[isize;a],
    }
    let mut ans:isize=1;
    for i in 1..a {
        if b[0]<=b[i]&&b[1]<=b[i]&&b[i-1]<=b[i] {ans+=1;}
    }
    println!("{}",ans);
}