<?php
fscanf(STDIN, "%d", $n);
$arr = explode(" ",trim(fgets(STDIN)));

$max = $arr[0];
$count = 1;
for($i=1; $i<$n; $i++){
    if($arr[0] <= $arr[$i] && $arr[$i-1] <= $arr[$i]){
        $count++;
    }
}

echo $count;
?>