import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long p[] = new long[N];

		long min = sc.nextLong();
		long max = min;

		long ans = 1;

		for (int i = 1; i < p.length; i++) {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		}
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long p[] = new long[N];

		long min = sc.nextLong();
		long max = min;

		long ans = 1;

		for (int i = 1; i < p.length; i++) {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long p[] = new long[N];

		long min = sc.nextLong();
		long max = min;

		long ans = 1;

		for (int i = 1; i < p.length; i++) {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long p[] = new long[N];

		long min = sc.nextLong();
		long max = min;

		long ans = 1;

		for (int i = 1; i < p.length; i++) {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc long p[] = new long[N]; p new long[N] N long min = sc.nextLong(); min sc.nextLong() sc.nextLong sc long max = min; max min long ans = 1; ans 1 for (int i = 1; i < p.length; i++) {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		} int i = 1; int i = 1; i 1 i < p.length i p.length p p.length i++ i++ i {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		} {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		} p[i] = sc.nextLong() p[i] p i sc.nextLong() sc.nextLong sc if (min > p[i]) {
				ans++;
				min = p[i];
			} min > p[i] min p[i] p i {
				ans++;
				min = p[i];
			} ans++ ans min = p[i] min p[i] p i if (max < p[i]) {
				max = p[i];
			} max < p[i] max p[i] p i {
				max = p[i];
			} max = p[i] max p[i] p i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long p[] = new long[N];

		long min = sc.nextLong();
		long max = min;

		long ans = 1;

		for (int i = 1; i < p.length; i++) {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long p[] = new long[N];

		long min = sc.nextLong();
		long max = min;

		long ans = 1;

		for (int i = 1; i < p.length; i++) {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		}
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long p[] = new long[N];

		long min = sc.nextLong();
		long max = min;

		long ans = 1;

		for (int i = 1; i < p.length; i++) {
			p[i] = sc.nextLong();
			if (min > p[i]) {
				ans++;
				min = p[i];
			}
			if (max < p[i]) {
				max = p[i];
			}
		}
		System.out.println(ans);
	}
}
