import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();

		int numArrasy[] = new int[num];

		for (int i = 0; i < num; i++) {

			numArrasy[i] = sc.nextInt();

		}

		int count = 1;
		int tmp = numArrasy[0];

		for (int i = 0; i < num; i++) {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		}

		System.out.println(count);

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();

		int numArrasy[] = new int[num];

		for (int i = 0; i < num; i++) {

			numArrasy[i] = sc.nextInt();

		}

		int count = 1;
		int tmp = numArrasy[0];

		for (int i = 0; i < num; i++) {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		}

		System.out.println(count);

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();

		int numArrasy[] = new int[num];

		for (int i = 0; i < num; i++) {

			numArrasy[i] = sc.nextInt();

		}

		int count = 1;
		int tmp = numArrasy[0];

		for (int i = 0; i < num; i++) {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		}

		System.out.println(count);

	} main {

		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();

		int numArrasy[] = new int[num];

		for (int i = 0; i < num; i++) {

			numArrasy[i] = sc.nextInt();

		}

		int count = 1;
		int tmp = numArrasy[0];

		for (int i = 0; i < num; i++) {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		}

		System.out.println(count);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int numArrasy[] = new int[num]; numArrasy new int[num] num for (int i = 0; i < num; i++) {

			numArrasy[i] = sc.nextInt();

		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {

			numArrasy[i] = sc.nextInt();

		} {

			numArrasy[i] = sc.nextInt();

		} numArrasy[i] = sc.nextInt() numArrasy[i] numArrasy i sc.nextInt() sc.nextInt sc int count = 1; count 1 int tmp = numArrasy[0]; tmp numArrasy[0] numArrasy 0 for (int i = 0; i < num; i++) {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		} {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		} if (tmp > numArrasy[i]) {
				count++;
			} tmp > numArrasy[i] tmp numArrasy[i] numArrasy i {
				count++;
			} count++ count tmp = Math.min(tmp, numArrasy[i]) tmp Math.min(tmp, numArrasy[i]) Math.min Math tmp numArrasy[i] numArrasy i System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();

		int numArrasy[] = new int[num];

		for (int i = 0; i < num; i++) {

			numArrasy[i] = sc.nextInt();

		}

		int count = 1;
		int tmp = numArrasy[0];

		for (int i = 0; i < num; i++) {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		}

		System.out.println(count);

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();

		int numArrasy[] = new int[num];

		for (int i = 0; i < num; i++) {

			numArrasy[i] = sc.nextInt();

		}

		int count = 1;
		int tmp = numArrasy[0];

		for (int i = 0; i < num; i++) {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		}

		System.out.println(count);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();

		int numArrasy[] = new int[num];

		for (int i = 0; i < num; i++) {

			numArrasy[i] = sc.nextInt();

		}

		int count = 1;
		int tmp = numArrasy[0];

		for (int i = 0; i < num; i++) {

			if (tmp > numArrasy[i]) {
				count++;
			}

			tmp = Math.min(tmp, numArrasy[i]);

		}

		System.out.println(count);

	}

}
