import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        int min = sc.nextInt();
        int[] p = new int[N];
        p[0] = min;
        
        for(int i = 1; i < N; i++) {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        }
        
        System.out.println(count);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        int min = sc.nextInt();
        int[] p = new int[N];
        p[0] = min;
        
        for(int i = 1; i < N; i++) {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        }
        
        System.out.println(count);
        
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        int min = sc.nextInt();
        int[] p = new int[N];
        p[0] = min;
        
        for(int i = 1; i < N; i++) {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        }
        
        System.out.println(count);
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        int min = sc.nextInt();
        int[] p = new int[N];
        p[0] = min;
        
        for(int i = 1; i < N; i++) {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        }
        
        System.out.println(count);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int count = 1; count 1 int min = sc.nextInt(); min sc.nextInt() sc.nextInt sc int[] p = new int[N]; p new int[N] N p[0] = min p[0] p 0 min for(int i = 1; i < N; i++) {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        } {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        } p[i] = sc.nextInt() p[i] p i sc.nextInt() sc.nextInt sc if(min >= p[i]) {
                count++;
                min = p[i];
            } min >= p[i] min p[i] p i {
                count++;
                min = p[i];
            } count++ count min = p[i] min p[i] p 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) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        int min = sc.nextInt();
        int[] p = new int[N];
        p[0] = min;
        
        for(int i = 1; i < N; i++) {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        }
        
        System.out.println(count);
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        int min = sc.nextInt();
        int[] p = new int[N];
        p[0] = min;
        
        for(int i = 1; i < N; i++) {
            p[i] = sc.nextInt();
            if(min >= p[i]) {
                count++;
                min = p[i];
            }
        }
        
        System.out.println(count);
        
    }
} Main
import java.util.*;

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