import java.util.*;

public final class Main{
	private static int solution(int[] array)
	{
		int current = 1;
		int score = 1;
		int minimum = array[0];
		while(current < array.length)
		{
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		}
		return score;
	}
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = new int[n];
		for(int i = 0; i < n; i++)
		{
			array[i] = sc.nextInt();
		}
		System.out.println(solution(array));
	}
} import java.util.*; util.* java public final class Main{
	private static int solution(int[] array)
	{
		int current = 1;
		int score = 1;
		int minimum = array[0];
		while(current < array.length)
		{
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		}
		return score;
	}
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = new int[n];
		for(int i = 0; i < n; i++)
		{
			array[i] = sc.nextInt();
		}
		System.out.println(solution(array));
	}
} Main private static int solution(int[] array)
	{
		int current = 1;
		int score = 1;
		int minimum = array[0];
		while(current < array.length)
		{
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		}
		return score;
	} solution {
		int current = 1;
		int score = 1;
		int minimum = array[0];
		while(current < array.length)
		{
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		}
		return score;
	} int current = 1; current 1 int score = 1; score 1 int minimum = array[0]; minimum array[0] array 0 while(current < array.length)
		{
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		} current < array.length current array.length array array.length {
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		} if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			} array[current] < minimum array[current] array current minimum {
				minimum = array[current];
				score++;
			} minimum = array[current] minimum array[current] array current score++ score current++ current return score; score int[] array array public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = new int[n];
		for(int i = 0; i < n; i++)
		{
			array[i] = sc.nextInt();
		}
		System.out.println(solution(array));
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = new int[n];
		for(int i = 0; i < n; i++)
		{
			array[i] = sc.nextInt();
		}
		System.out.println(solution(array));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] array = new int[n]; array new int[n] n for(int i = 0; i < n; i++)
		{
			array[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			array[i] = sc.nextInt();
		} {
			array[i] = sc.nextInt();
		} array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc System.out.println(solution(array)) System.out.println System.out System System.out solution(array) solution array String[] args args public final class Main{
	private static int solution(int[] array)
	{
		int current = 1;
		int score = 1;
		int minimum = array[0];
		while(current < array.length)
		{
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		}
		return score;
	}
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = new int[n];
		for(int i = 0; i < n; i++)
		{
			array[i] = sc.nextInt();
		}
		System.out.println(solution(array));
	}
} public final class Main{
	private static int solution(int[] array)
	{
		int current = 1;
		int score = 1;
		int minimum = array[0];
		while(current < array.length)
		{
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		}
		return score;
	}
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = new int[n];
		for(int i = 0; i < n; i++)
		{
			array[i] = sc.nextInt();
		}
		System.out.println(solution(array));
	}
} Main
import java.util.*;

public final class Main{
	private static int solution(int[] array)
	{
		int current = 1;
		int score = 1;
		int minimum = array[0];
		while(current < array.length)
		{
			if(array[current] < minimum)
			{
				minimum = array[current];
				score++;
			}
			current++;
		}
		return score;
	}
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = new int[n];
		for(int i = 0; i < n; i++)
		{
			array[i] = sc.nextInt();
		}
		System.out.println(solution(array));
	}
}