import java.util.Scanner

import scala.annotation.tailrec

object Main {
  def main(args: Array[String]) = {
    val sc = new Scanner(System.in)
    val N = sc.nextInt()
    val heights = List.fill(N)(sc.nextInt)

    val hh = heights.scanLeft(List.empty[Int])((pre, v) => v :: pre).tail.map { hs =>
      if (hs.size == 1) true else {
        hs.tail.forall(hs.head >= _)
      }
    }

    println(hh.filter(_ == true).size)
  }
}
