    import java.util.*;

    public class Main{
        public static void main(String[] args) {
            Scanner scn = new Scanner(System.in);
            int n = scn.nextInt();
            int[] arr = new int[n];
            int min = Integer.MAX_VALUE;
            int updatedMin = 0;
            for(int i = 0 ; i < n ; i++){
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            }
            System.out.println(updatedMin);

        }
    } import java.util.*; util.* java public class Main{
        public static void main(String[] args) {
            Scanner scn = new Scanner(System.in);
            int n = scn.nextInt();
            int[] arr = new int[n];
            int min = Integer.MAX_VALUE;
            int updatedMin = 0;
            for(int i = 0 ; i < n ; i++){
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            }
            System.out.println(updatedMin);

        }
    } Main public static void main(String[] args) {
            Scanner scn = new Scanner(System.in);
            int n = scn.nextInt();
            int[] arr = new int[n];
            int min = Integer.MAX_VALUE;
            int updatedMin = 0;
            for(int i = 0 ; i < n ; i++){
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            }
            System.out.println(updatedMin);

        } main {
            Scanner scn = new Scanner(System.in);
            int n = scn.nextInt();
            int[] arr = new int[n];
            int min = Integer.MAX_VALUE;
            int updatedMin = 0;
            for(int i = 0 ; i < n ; i++){
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            }
            System.out.println(updatedMin);

        } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int[] arr = new int[n]; arr new int[n] n int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE int updatedMin = 0; updatedMin 0 for(int i = 0 ; i < n ; i++){
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            } {
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            } arr[i] = scn.nextInt() arr[i] arr i scn.nextInt() scn.nextInt scn if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                } arr[i] <min arr[i] arr i min {
                    updatedMin++;
                    min = arr[i];
                } updatedMin++ updatedMin min = arr[i] min arr[i] arr i System.out.println(updatedMin) System.out.println System.out System System.out updatedMin String[] args args public class Main{
        public static void main(String[] args) {
            Scanner scn = new Scanner(System.in);
            int n = scn.nextInt();
            int[] arr = new int[n];
            int min = Integer.MAX_VALUE;
            int updatedMin = 0;
            for(int i = 0 ; i < n ; i++){
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            }
            System.out.println(updatedMin);

        }
    } public class Main{
        public static void main(String[] args) {
            Scanner scn = new Scanner(System.in);
            int n = scn.nextInt();
            int[] arr = new int[n];
            int min = Integer.MAX_VALUE;
            int updatedMin = 0;
            for(int i = 0 ; i < n ; i++){
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            }
            System.out.println(updatedMin);

        }
    } Main
    import java.util.*;

    public class Main{
        public static void main(String[] args) {
            Scanner scn = new Scanner(System.in);
            int n = scn.nextInt();
            int[] arr = new int[n];
            int min = Integer.MAX_VALUE;
            int updatedMin = 0;
            for(int i = 0 ; i < n ; i++){
                arr[i] = scn.nextInt();
                if(arr[i] <min){
                    updatedMin++;
                    min = arr[i];
                }
            }
            System.out.println(updatedMin);

        }
    }