fun main(args: Array<String>) {
    var n = readLine()!!.toInt()
    val h = readLine()!!.split(" ")
    var count = 0
    var bo = false

    for(i in 0 .. (n-1)){
        bo = false
        for(j in 0 .. i){
            if(h[j] > h[i]) bo = true
        }
        if(!bo)count++
    }
    println(count)
}
