import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		String[] nums = sc.nextLine().split(" ");
		int cont = 1;
		int bump = Integer.parseInt(nums[0]);
		for(int i = 1; i < nums.length; i++ ) {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		}	
		System.out.println(cont);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		String[] nums = sc.nextLine().split(" ");
		int cont = 1;
		int bump = Integer.parseInt(nums[0]);
		for(int i = 1; i < nums.length; i++ ) {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		}	
		System.out.println(cont);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		String[] nums = sc.nextLine().split(" ");
		int cont = 1;
		int bump = Integer.parseInt(nums[0]);
		for(int i = 1; i < nums.length; i++ ) {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		}	
		System.out.println(cont);
	} main {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		String[] nums = sc.nextLine().split(" ");
		int cont = 1;
		int bump = Integer.parseInt(nums[0]);
		for(int i = 1; i < nums.length; i++ ) {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		}	
		System.out.println(cont);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) sc.nextLine() sc.nextLine sc String[] nums = sc.nextLine().split(" "); nums sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int cont = 1; cont 1 int bump = Integer.parseInt(nums[0]); bump Integer.parseInt(nums[0]) Integer.parseInt Integer nums[0] nums 0 for(int i = 1; i < nums.length; i++ ) {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		} int i = 1; int i = 1; i 1 i < nums.length i nums.length nums nums.length i++ i++ i {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		} {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		} if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			} Integer.parseInt(nums[i])<bump Integer.parseInt(nums[i]) Integer.parseInt Integer nums[i] nums i bump {
				bump = Integer.parseInt(nums[i]);
				cont++;
			} bump = Integer.parseInt(nums[i]) bump Integer.parseInt(nums[i]) Integer.parseInt Integer nums[i] nums i cont++ cont System.out.println(cont) System.out.println System.out System System.out cont String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		String[] nums = sc.nextLine().split(" ");
		int cont = 1;
		int bump = Integer.parseInt(nums[0]);
		for(int i = 1; i < nums.length; i++ ) {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		}	
		System.out.println(cont);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		String[] nums = sc.nextLine().split(" ");
		int cont = 1;
		int bump = Integer.parseInt(nums[0]);
		for(int i = 1; i < nums.length; i++ ) {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		}	
		System.out.println(cont);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		String[] nums = sc.nextLine().split(" ");
		int cont = 1;
		int bump = Integer.parseInt(nums[0]);
		for(int i = 1; i < nums.length; i++ ) {
			if(Integer.parseInt(nums[i])<bump){
				bump = Integer.parseInt(nums[i]);
				cont++;
			}
		}	
		System.out.println(cont);
	}

}