import java.util.Scanner;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] p = new int[n];
        for (int i = 0; i < n; i++) {
            p[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        int result = 1;
        int min = p[0];
        for (int i = 1; i < p.length; i++) {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] p = new int[n];
        for (int i = 0; i < n; i++) {
            p[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        int result = 1;
        int min = p[0];
        for (int i = 1; i < p.length; i++) {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
} Main public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] p = new int[n];
        for (int i = 0; i < n; i++) {
            p[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        int result = 1;
        int min = p[0];
        for (int i = 1; i < p.length; i++) {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        }

        // 出力
        System.out.println(result);
        sc.close();
    } main {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] p = new int[n];
        for (int i = 0; i < n; i++) {
            p[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        int result = 1;
        int min = p[0];
        for (int i = 1; i < p.length; i++) {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        }

        // 出力
        System.out.println(result);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] p = new int[n]; p new int[n] n for (int i = 0; i < n; i++) {
            p[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            p[i] = Integer.parseInt(sc.next());
        } {
            p[i] = Integer.parseInt(sc.next());
        } p[i] = Integer.parseInt(sc.next()) p[i] p i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int result = 1; result 1 int min = p[0]; min p[0] p 0 for (int i = 1; i < p.length; i++) {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        } int i = 1; int i = 1; i 1 i < p.length i p.length p p.length i++ i++ i {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        } {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        } if (p[i] <= min) {
                result++;
            } p[i] <= min p[i] p i min {
                result++;
            } result++ result min = Math.min(min, p[i]) min Math.min(min, p[i]) Math.min Math min p[i] p i System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String args[] args public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] p = new int[n];
        for (int i = 0; i < n; i++) {
            p[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        int result = 1;
        int min = p[0];
        for (int i = 1; i < p.length; i++) {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
} public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] p = new int[n];
        for (int i = 0; i < n; i++) {
            p[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        int result = 1;
        int min = p[0];
        for (int i = 1; i < p.length; i++) {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] p = new int[n];
        for (int i = 0; i < n; i++) {
            p[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        int result = 1;
        int min = p[0];
        for (int i = 1; i < p.length; i++) {
            if (p[i] <= min) {
                result++;
            }
            min = Math.min(min, p[i]);
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
}