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 num = int.Parse(Console.ReadLine());
            string[] input = Console.ReadLine().Split(' ');
            int result = 1;
            int maxnum = int.Parse(input[0]);
            for (int i = 1; i < num - 1; ++i)
            {
                if (maxnum < int.Parse(input[i]))
                {
                    maxnum = int.Parse(input[i]);
                    result = result + 1;
                }
            }
            Console.WriteLine(result);

        }
    }
}
