import scala.io._
import scala.util.control.Breaks

// e.g
// 1 2 3
// val Array(a, b) = readLine.split(" ").map(_.toInt) => Array(1, 2, 3)
// 5
// 1 2 3
// 4 5 6
// 7 8 9
// val lines = Source.stdin.getLines()
// データ個数読み取り
// val n = lines.next().toInt
// データ行n個読み取り
// val data = lines.take(n).map{ line => line.split(" ").map(_.toInt).toList }.toList => List(List(1, 2, 3), List(4, 5, 6), List(7, b, 9))

object Main {
  def main(args: Array[String]): Unit = {
    val n = readLine.toInt
    val h = readLine.split(" ").map(_.toInt)
    var ans = 1
    for (i <- 1 to n-1){
      ans += 1
      val b = new Breaks
      b.breakable {
        for (j <- 0 to i) {
          if (h(i) < h(j)) { ans -= 1; b.break}
        }
      }
    }

    println(ans)
  }
}
