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

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            var res = 0;

            var N = int.Parse(Console.ReadLine());

            var H = new int[N];

            var H_s = Console.ReadLine().Split(' ');

            for (int i = 0; i < N; i++)
            {
                H[i] = int.Parse(H_s[i]);
            }

            for (int i = 0; i < N; i++)
            {
                if (i == 0)
                {
                    res++;
                }
                else if (H[i - 1] < H[i])
                {
                    res++;
                }
            }

            Console.WriteLine(res);
        }
    }
}
