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

namespace Great_Ocean_View
{
    class Program
    {
        static void Main(string[] args)
        {
            int otpt = 1;
            int no = Convert.ToInt16(Console.ReadLine());
            string[] inp = (Console.ReadLine()).Split(' ');
            int[] mountain = new int[no];
            int maxheight = mountain[0];
            for (int i =0;i<=no-1;i++)
            {
                mountain[i] = Convert.ToInt16(inp[i]);
            }
            for (int j = 1; j <= no - 1; j++)
            {
                if (mountain[j]>=maxheight)
                {
                    maxheight = mountain[j];
                    otpt++;
                }
            }
            Console.WriteLine(otpt);
            Console.ReadKey();
        }
    }
}
