import java.util.Scanner


object Main {
  def read() = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt()
    val h = for (_ <- 0 until n) yield sc.nextInt()
    (n, h)
  }

  def solve(n: Int, h: IndexedSeq[Int]): Int = {
    def canView(i: Int): Boolean = (0 until i).forall(h(_) <= h(i))
    (0 until n).count(canView)
  }


  def main(args: Array[String]): Unit = {
    val (n, h) = read()
    println(solve(n, h))
  }
}