fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val hList = readLine()!!.split(" ").map{ it.toInt() }
    
    var height: Int = 0;
    var ans = 0;
    
    for(h in hList){
        if(h > height){
            ans++
        }
        height = h;
    }
    println(ans)
}
