import io.StdIn._

object Main extends App {
  val n   = readInt
  val arr = readLine.split(" ").map(_.toInt)

  require(1 <= n && n <= 200000)
  require(arr.forall(a => 1 <= a && a <= 1000))

  println(arr.zipWithIndex.count { case (a, i) => arr.take(i + 1).forall(_ >= a) })
}
