import scala.io.Source

object Main extends App {
  val List(nStr, xsStr) = Source.stdin.getLines().toList
  val n: Int = n.toInt
  val xs: List[Int] = xsStr.split(' ').map(_.toInt).toList
  
  val buffer = scala.collection.mutable.Buffer[Int]()
  
  val c = xs.count { x =>
    buffer += x
    !buffer.exists(y => y < x)
  }
  println(c)
}