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

namespace ABC124_B_Great_Ocean_View
{
	class Program
	{
		static void Main(string[] args)
		{
			int n = int.Parse(Console.ReadLine());
			int[] height = Console.ReadLine().Split(' ').Select((s) => int.Parse(s)).ToArray();
			int peak = 0;
			int count = 1;

			for(int i = 0; i < n - 1; i++)
			{
				if(height[i] >= height[i + 1])
				{
					peak = height[i];
					continue;
				}
				else
				{
					count++;
				}
			}

			Console.WriteLine(count);
		}
	}
}
