using System;

class Program
{
  static void Main(string[] args)
  {
    int N = int.Parse(Console.ReadLine());
    string[] nums = Console.ReadLine().Split(' ');
    int Count = 1;
    int First = int.Parse(nums[0]);
    
    for(int i = 1; i < N; i++)
    {
      if(First <= int.Parse(nums[i]) && int.Parse(nums[i - 1]) <= int.Parse(nums[i])) Count++;
    }
    Console.Write(Count);
  }
}