import scala.collection.mutable.ArrayBuffer

object Main extends App {
	val sc = new java.util.Scanner(System.in)
	val pw = new java.io.PrintWriter(System.out)
	
	val n = sc.nextInt
	val p = Array.fill(n)(sc.nextInt)
	
	pw.println( (0 until n).filter(i => (0 until i) forall (j => p(i) <= p(j))).length )
	pw.flush()
}