import java.util.Scanner;

public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int p[] = new int[n];

		int num = 1;
		int min = 0;
		for(int i = 0; i < n; i++) {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		}
		
		System.out.println(num);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int p[] = new int[n];

		int num = 1;
		int min = 0;
		for(int i = 0; i < n; i++) {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		}
		
		System.out.println(num);
	}
} Main public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int p[] = new int[n];

		int num = 1;
		int min = 0;
		for(int i = 0; i < n; i++) {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		}
		
		System.out.println(num);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int p[] = new int[n];

		int num = 1;
		int min = 0;
		for(int i = 0; i < n; i++) {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		}
		
		System.out.println(num);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int p[] = new int[n]; p new int[n] n int num = 1; num 1 int min = 0; min 0 for(int i = 0; i < n; i++) {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		} {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		} p[i] = scan.nextInt() p[i] p i scan.nextInt() scan.nextInt scan if(i == 0) {
				min = p[i];
				continue;
			} i == 0 i 0 {
				min = p[i];
				continue;
			} min = p[i] min p[i] p i continue; if(p[i] < min) {
				num++;
				min = p[i];
			} p[i] < min p[i] p i min {
				num++;
				min = p[i];
			} num++ num min = p[i] min p[i] p i System.out.println(num) System.out.println System.out System System.out num String args[] args public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int p[] = new int[n];

		int num = 1;
		int min = 0;
		for(int i = 0; i < n; i++) {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		}
		
		System.out.println(num);
	}
} public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int p[] = new int[n];

		int num = 1;
		int min = 0;
		for(int i = 0; i < n; i++) {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		}
		
		System.out.println(num);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int p[] = new int[n];

		int num = 1;
		int min = 0;
		for(int i = 0; i < n; i++) {
			p[i] = scan.nextInt();
			if(i == 0) {
				min = p[i];
				continue;
			}
			if(p[i] < min) {
				num++;
				min = p[i];
			}
		}
		
		System.out.println(num);
	}
}