<?php
  $n = trim(fgets(STDIN));
  $h = explode(" ",trim(fgets(STDIN)));
  $count = 1;
  $max = $h[0];
  for($i=1; $i<$n; $i++){
    if($max <= $h[$i]){
      $max = $h[$i];
      $count++;
    }
  }
  echo $count."\n";