object Main extends App {
  val S = scala.io.StdIn.readLine().toInt
  val K = scala.io.StdIn.readLine().split(" ").toList.map(_.toInt)

  val ans = K.zipWithIndex.filter( v => (K.dropRight(K.length - v._2 - 1)).max == v._1 ).map(v => v._1)
  println(ans.length)
}