"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0]);
    const A = arg.slice(1, N + 1).map(n=>parseInt(n));
    
    let answer = 0;
    
    for(let i=0; i<N-1; i++) {
        if(A[i] <= A[parseInt(i)+1]) {
            answer++;
        }
    }
    
    console.log(answer === N - 1 ? answer + 1 : answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));