import java.util.*
fun main(args: Array<String>) {

    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    var max = 0;
    var ans = 0;
    for (i in 0 until n) {
        val h = sc.nextInt()
        if (max > h) continue;
        max = h
        ans++
    }

        println(ans)
}
