import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int t = scan.nextInt(), temp = t, counter = 0;
        for (int count = 0; count < t; count++) {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int t = scan.nextInt(), temp = t, counter = 0;
        for (int count = 0; count < t; count++) {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int t = scan.nextInt(), temp = t, counter = 0;
        for (int count = 0; count < t; count++) {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int t = scan.nextInt(), temp = t, counter = 0;
        for (int count = 0; count < t; count++) {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int t = scan.nextInt() t scan.nextInt() scan.nextInt scan temp = t temp t counter = 0; counter 0 for (int count = 0; count < t; count++) {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        } int count = 0; int count = 0; count 0 count < t count t count++ count++ count {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        } {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        } int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan if(x <= temp) {
                temp = x; counter++;
            } x <= temp x temp {
                temp = x; counter++;
            } temp = x temp x counter++ counter System.out.println(counter) System.out.println System.out System System.out counter scan.close() scan.close scan String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int t = scan.nextInt(), temp = t, counter = 0;
        for (int count = 0; count < t; count++) {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int t = scan.nextInt(), temp = t, counter = 0;
        for (int count = 0; count < t; count++) {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int t = scan.nextInt(), temp = t, counter = 0;
        for (int count = 0; count < t; count++) {
            int x = scan.nextInt();
            if(x <= temp) {
                temp = x; counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
}