import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt()
    val hVector = Vector.fill(n)(sc.nextInt)

    val count = (2 to n).count(i => hVector.take(i - 1).forall(h => h <= hVector(i - 1)))
    println(count + 1)
  }
}
