import java.util.*;

public class Main {
    public static void main(String[] args) {
        int N;
        int[] Pi = null;
        try (Scanner sc = new Scanner(System.in)) {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        }
        int result = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < Pi.length; i++) {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        }
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        int N;
        int[] Pi = null;
        try (Scanner sc = new Scanner(System.in)) {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        }
        int result = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < Pi.length; i++) {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        }
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        int N;
        int[] Pi = null;
        try (Scanner sc = new Scanner(System.in)) {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        }
        int result = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < Pi.length; i++) {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        }
        System.out.println(result);
    } main {
        int N;
        int[] Pi = null;
        try (Scanner sc = new Scanner(System.in)) {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        }
        int result = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < Pi.length; i++) {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        }
        System.out.println(result);
    } int N; N int[] Pi = null; Pi null try (Scanner sc = new Scanner(System.in)) {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        } {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) N = sc.nextInt() N sc.nextInt() sc.nextInt sc Pi = new int[N] Pi new int[N] N for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                Pi[i] = sc.nextInt();
            } {
                Pi[i] = sc.nextInt();
            } Pi[i] = sc.nextInt() Pi[i] Pi i sc.nextInt() sc.nextInt sc int result = 0; result 0 int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < Pi.length; i++) {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        } int i = 0; int i = 0; i 0 i < Pi.length i Pi.length Pi Pi.length i++ i++ i {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        } {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        } if(Pi[i] < min){
                result++;
                min = Pi[i];
            } Pi[i] < min Pi[i] Pi i min {
                result++;
                min = Pi[i];
            } result++ result min = Pi[i] min Pi[i] Pi i System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {
        int N;
        int[] Pi = null;
        try (Scanner sc = new Scanner(System.in)) {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        }
        int result = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < Pi.length; i++) {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        }
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) {
        int N;
        int[] Pi = null;
        try (Scanner sc = new Scanner(System.in)) {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        }
        int result = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < Pi.length; i++) {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        }
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        int N;
        int[] Pi = null;
        try (Scanner sc = new Scanner(System.in)) {
            N = sc.nextInt();
            Pi = new int[N];
            for (int i = 0; i < N; i++) {
                Pi[i] = sc.nextInt();
            }
        }
        int result = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < Pi.length; i++) {
            if(Pi[i] < min){
                result++;
                min = Pi[i];
            }
        }
        System.out.println(result);
    }
}
