using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            var imp = Console.ReadLine().Split(' ');
            int[] ary = new int[N];
            int ct = 1;
            int maxH = 0;
            for (int i = 0; i < N; i++)
            {
                ary[i] = int.Parse(imp[0]);
            }
            for(int j = 1; j < N - 1; j++)
            {
                int[] aryC = new int[j];
                Array.Copy(ary, 0, aryC, 0, j);
                maxH = aryC.Max();
                if (maxH <= ary[j+1])
                {
                    ct += 1;
                }
                /*
                Console.WriteLine(maxH);
                Console.WriteLine(ary[j]);
                */
            }
            Console.WriteLine(ct);


            //System.Threading.Thread.Sleep(3000);
        }
    }
    
}
