using System;
using System.Linq;

namespace ABC124
{
    class Program
    {
        static void Main(string[] args)
        {
            string mountains = Console.ReadLine();
            string[] height = Console.ReadLine().Split(' ');

            int intMountains = int.Parse(mountains);
            int[] intHeigt = height.Select(int.Parse).ToArray();

            if (intHeigt[0] == intHeigt.Max()){
                Console.WriteLine(1);
                return;
            }

            int minHeight = intHeigt[0];
            int count = 0;

            foreach(int h in intHeigt)
            {
                if(h >= minHeight)
                {
                    minHeight = h;
                    count++;
                }
            }

            Console.WriteLine(count);

        }
    }
}
