object Main {
  def main(args: Array[String]): Unit = {
    val lines = io.Source.stdin.getLines().toSeq
    println(solve(lines))
  }

  def solve(lines: Seq[String]): String = {
    val n = lines.head.toInt
    val mountains = lines.tail.head.split(" ").take(n).map(_.toInt)
    var count = 1
    mountains.zipWithIndex.drop(1).foreach { case (h, i) =>
      if (mountains.take(i).max <= h) count += 1
    }
    count.toString
  }
}
