using System;

namespace ABC124_b
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] array1 = Console.ReadLine().Split(' ');
            int a = int.Parse(array1[0]);
            string[] array2 = Console.ReadLine().Split(' ');
            int[] intAry = Array.ConvertAll<string, int>(array2, delegate (string value)
            {
                return int.Parse(value);
            });
            int count = 1;
           
            for(int i = 1; i < a; i++)
            {
                
                if((intAry[0] <= intAry[i]) && (intAry[i - 1] <= intAry[i]))
                {
                    count++;
                }
            }
            Console.WriteLine(count);
        }
    }
}
