import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int P[] = new int[N];
    int countI = 1;
    for(int i=0; i<N; i++) {
    int b = scan.nextInt();
    P[i] = b;
    }
    int j = 1;
    int Min = P[0];
    while(j<N) {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    }
    System.out.println(countI);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int P[] = new int[N];
    int countI = 1;
    for(int i=0; i<N; i++) {
    int b = scan.nextInt();
    P[i] = b;
    }
    int j = 1;
    int Min = P[0];
    while(j<N) {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    }
    System.out.println(countI);
  }
} Main public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int P[] = new int[N];
    int countI = 1;
    for(int i=0; i<N; i++) {
    int b = scan.nextInt();
    P[i] = b;
    }
    int j = 1;
    int Min = P[0];
    while(j<N) {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    }
    System.out.println(countI);
  } main {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int P[] = new int[N];
    int countI = 1;
    for(int i=0; i<N; i++) {
    int b = scan.nextInt();
    P[i] = b;
    }
    int j = 1;
    int Min = P[0];
    while(j<N) {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    }
    System.out.println(countI);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int P[] = new int[N]; P new int[N] N int countI = 1; countI 1 for(int i=0; i<N; i++) {
    int b = scan.nextInt();
    P[i] = b;
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
    int b = scan.nextInt();
    P[i] = b;
    } {
    int b = scan.nextInt();
    P[i] = b;
    } int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan P[i] = b P[i] P i b int j = 1; j 1 int Min = P[0]; Min P[0] P 0 while(j<N) {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    } j<N j N {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    } if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	} P[j]<Min P[j] P j Min {
    		Min = P[j];
    		countI++;
    	} Min = P[j] Min P[j] P j countI++ countI j++ j System.out.println(countI) System.out.println System.out System System.out countI String args[] args public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int P[] = new int[N];
    int countI = 1;
    for(int i=0; i<N; i++) {
    int b = scan.nextInt();
    P[i] = b;
    }
    int j = 1;
    int Min = P[0];
    while(j<N) {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    }
    System.out.println(countI);
  }
} public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int P[] = new int[N];
    int countI = 1;
    for(int i=0; i<N; i++) {
    int b = scan.nextInt();
    P[i] = b;
    }
    int j = 1;
    int Min = P[0];
    while(j<N) {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    }
    System.out.println(countI);
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int P[] = new int[N];
    int countI = 1;
    for(int i=0; i<N; i++) {
    int b = scan.nextInt();
    P[i] = b;
    }
    int j = 1;
    int Min = P[0];
    while(j<N) {
    	if(P[j]<Min) {
    		Min = P[j];
    		countI++;
    	}
    	j++;
    }
    System.out.println(countI);
  }
}