
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int h=sc.nextInt();
		int c=1;
		for(int i=1;i<n;i++) {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		}
		System.out.println(c);



	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int h=sc.nextInt();
		int c=1;
		for(int i=1;i<n;i++) {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		}
		System.out.println(c);



	}

} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int h=sc.nextInt();
		int c=1;
		for(int i=1;i<n;i++) {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		}
		System.out.println(c);



	} main {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int h=sc.nextInt();
		int c=1;
		for(int i=1;i<n;i++) {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		}
		System.out.println(c);



	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int h=sc.nextInt(); h sc.nextInt() sc.nextInt sc int c=1; c 1 for(int i=1;i<n;i++) {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		} int i=1; int i=1; i 1 i<n i n i++ i++ i {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		} {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		} int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc if(h>=a)
				c++; h>=a h a c++ c h=Math.min(a, h) h Math.min(a, h) Math.min Math a h System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int h=sc.nextInt();
		int c=1;
		for(int i=1;i<n;i++) {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		}
		System.out.println(c);



	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int h=sc.nextInt();
		int c=1;
		for(int i=1;i<n;i++) {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		}
		System.out.println(c);



	}

} Main

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int h=sc.nextInt();
		int c=1;
		for(int i=1;i<n;i++) {
			int a=sc.nextInt();
			if(h>=a)
				c++;
			h=Math.min(a, h);
		}
		System.out.println(c);



	}

}
