using System;
using System.Threading.Tasks;
using static System.Console;
class program{
  static void Main(string[] args){
    int n=int.Parse(ReadLine());
    string[] inp =ReadLine().Split(' ');
    int[] ind=new int[n];
    int max=0;
    int res=0;
    Parallel.For(0,n-1,i=>{
      ind[i]=int.Parse(inp[i]);
      if(max<=ind[i]){
        res++;
        max=ind[i];
      }
    });
    WriteLine(res);
  }
}