import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
		int b = sc.nextInt();
      int[] hairetu=new int[b];
        for(int i=0;i<hairetu.length;i++){
          int c=sc.nextInt();
          hairetu[i]=c;
        }
      int count=0;
      int champ=hairetu[0];
      for(int k=0;k<hairetu.length;k++){
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      }
      System.out.println(count);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
		int b = sc.nextInt();
      int[] hairetu=new int[b];
        for(int i=0;i<hairetu.length;i++){
          int c=sc.nextInt();
          hairetu[i]=c;
        }
      int count=0;
      int champ=hairetu[0];
      for(int k=0;k<hairetu.length;k++){
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      }
      System.out.println(count);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
		int b = sc.nextInt();
      int[] hairetu=new int[b];
        for(int i=0;i<hairetu.length;i++){
          int c=sc.nextInt();
          hairetu[i]=c;
        }
      int count=0;
      int champ=hairetu[0];
      for(int k=0;k<hairetu.length;k++){
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      }
      System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
		int b = sc.nextInt();
      int[] hairetu=new int[b];
        for(int i=0;i<hairetu.length;i++){
          int c=sc.nextInt();
          hairetu[i]=c;
        }
      int count=0;
      int champ=hairetu[0];
      for(int k=0;k<hairetu.length;k++){
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      }
      System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int[] hairetu=new int[b]; hairetu new int[b] b for(int i=0;i<hairetu.length;i++){
          int c=sc.nextInt();
          hairetu[i]=c;
        } int i=0; int i=0; i 0 i<hairetu.length i hairetu.length hairetu hairetu.length i++ i++ i {
          int c=sc.nextInt();
          hairetu[i]=c;
        } {
          int c=sc.nextInt();
          hairetu[i]=c;
        } int c=sc.nextInt(); c sc.nextInt() sc.nextInt sc hairetu[i]=c hairetu[i] hairetu i c int count=0; count 0 int champ=hairetu[0]; champ hairetu[0] hairetu 0 for(int k=0;k<hairetu.length;k++){
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      } int k=0; int k=0; k 0 k<hairetu.length k hairetu.length hairetu hairetu.length k++ k++ k {
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      } {
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      } if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        } champ>=hairetu[k] champ hairetu[k] hairetu k {
          champ=hairetu[k];
          count++;
        } champ=hairetu[k] champ hairetu[k] hairetu k count++ count 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){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
		int b = sc.nextInt();
      int[] hairetu=new int[b];
        for(int i=0;i<hairetu.length;i++){
          int c=sc.nextInt();
          hairetu[i]=c;
        }
      int count=0;
      int champ=hairetu[0];
      for(int k=0;k<hairetu.length;k++){
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      }
      System.out.println(count);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
		int b = sc.nextInt();
      int[] hairetu=new int[b];
        for(int i=0;i<hairetu.length;i++){
          int c=sc.nextInt();
          hairetu[i]=c;
        }
      int count=0;
      int champ=hairetu[0];
      for(int k=0;k<hairetu.length;k++){
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      }
      System.out.println(count);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
		int b = sc.nextInt();
      int[] hairetu=new int[b];
        for(int i=0;i<hairetu.length;i++){
          int c=sc.nextInt();
          hairetu[i]=c;
        }
      int count=0;
      int champ=hairetu[0];
      for(int k=0;k<hairetu.length;k++){
        if(champ>=hairetu[k]){
          champ=hairetu[k];
          count++;
        }
      }
      System.out.println(count);
	}
}