import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)
//Map<String, Integer> map = new HashMap<String, Integer>(n);
//ArrayList<String> cc = new ArrayList<>(n);
//Collections.sort(list);
//Array.sort(list);
//Arrays.asList(c).contains("a")

public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int N=sc.nextInt();
	int p[]=new int[N];
	int min=0;
	int ctn=0;
	for(int i=0;i<N;i++) {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	}
	
	p(ctn);
	
 }
	static boolean te() {
		
		
		
		return true;
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int N=sc.nextInt();
	int p[]=new int[N];
	int min=0;
	int ctn=0;
	for(int i=0;i<N;i++) {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	}
	
	p(ctn);
	
 }
	static boolean te() {
		
		
		
		return true;
	}
} Main private static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static void p(String ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans String ans ans static void p(int ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans int ans ans static void p(long ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans long ans ans static void p(double ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans double ans ans public static void main(String[] args) {
	int N=sc.nextInt();
	int p[]=new int[N];
	int min=0;
	int ctn=0;
	for(int i=0;i<N;i++) {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	}
	
	p(ctn);
	
 } main {
	int N=sc.nextInt();
	int p[]=new int[N];
	int min=0;
	int ctn=0;
	for(int i=0;i<N;i++) {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	}
	
	p(ctn);
	
 } int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int p[]=new int[N]; p new int[N] N int min=0; min 0 int ctn=0; ctn 0 for(int i=0;i<N;i++) {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	} {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	} p[i]=sc.nextInt() p[i] p i sc.nextInt() sc.nextInt sc if(i==0) {
			min=p[i];
		} i==0 i 0 {
			min=p[i];
		} min=p[i] min p[i] p i if(min>=p[i]) {
			min=p[i];
			ctn++;
		} min>=p[i] min p[i] p i {
			min=p[i];
			ctn++;
		} min=p[i] min p[i] p i ctn++ ctn p(ctn) p ctn String[] args args static boolean te() {
		
		
		
		return true;
	} te {
		
		
		
		return true;
	} return true; true public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int N=sc.nextInt();
	int p[]=new int[N];
	int min=0;
	int ctn=0;
	for(int i=0;i<N;i++) {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	}
	
	p(ctn);
	
 }
	static boolean te() {
		
		
		
		return true;
	}
} public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int N=sc.nextInt();
	int p[]=new int[N];
	int min=0;
	int ctn=0;
	for(int i=0;i<N;i++) {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	}
	
	p(ctn);
	
 }
	static boolean te() {
		
		
		
		return true;
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)
//Map<String, Integer> map = new HashMap<String, Integer>(n);
//ArrayList<String> cc = new ArrayList<>(n);
//Collections.sort(list);
//Array.sort(list);
//Arrays.asList(c).contains("a")

public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int N=sc.nextInt();
	int p[]=new int[N];
	int min=0;
	int ctn=0;
	for(int i=0;i<N;i++) {
		p[i]=sc.nextInt();
		if(i==0) {
			min=p[i];
		}
		if(min>=p[i]) {
			min=p[i];
			ctn++;
		}
	}
	
	p(ctn);
	
 }
	static boolean te() {
		
		
		
		return true;
	}
}
