import java.util.Scanner;
import java.util.Arrays;
import java.lang.Integer;
import java.lang.Math;

class Main {
  public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
		String tokens1[] = scanner.nextLine().split(" ");
		String tokens2[] = scanner.nextLine().split(" ");
		int min = Integer.parseInt(tokens2[0]);
		int count = 1;
		for ( int i = 1; i < tokens2.length; i++) {
			int val = Integer.parseInt(tokens2[i]);
			if (val <= min) {
				count++;
			}
			min = Math.min(min, val);
		}
		System.out.print(count);
		

        
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.lang.Integer; Integer java.lang import java.lang.Math; Math java.lang class Main {
  public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
		String tokens1[] = scanner.nextLine().split(" ");
		String tokens2[] = scanner.nextLine().split(" ");
		int min = Integer.parseInt(tokens2[0]);
		int count = 1;
		for ( int i = 1; i < tokens2.length; i++) {
			int val = Integer.parseInt(tokens2[i]);
			if (val <= min) {
				count++;
			}
			min = Math.min(min, val);
		}
		System.out.print(count);
		

        
  }
} Main public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
		String tokens1[] = scanner.nextLine().split(" ");
		String tokens2[] = scanner.nextLine().split(" ");
		int min = Integer.parseInt(tokens2[0]);
		int count = 1;
		for ( int i = 1; i < tokens2.length; i++) {
			int val = Integer.parseInt(tokens2[i]);
			if (val <= min) {
				count++;
			}
			min = Math.min(min, val);
		}
		System.out.print(count);
		

        
  } main {
    	Scanner scanner = new Scanner(System.in);
		String tokens1[] = scanner.nextLine().split(" ");
		String tokens2[] = scanner.nextLine().split(" ");
		int min = Integer.parseInt(tokens2[0]);
		int count = 1;
		for ( int i = 1; i < tokens2.length; i++) {
			int val = Integer.parseInt(tokens2[i]);
			if (val <= min) {
				count++;
			}
			min = Math.min(min, val);
		}
		System.out.print(count);
		

        
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String tokens1[] = scanner.nextLine().split(" "); tokens1 scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " String tokens2[] = scanner.nextLine().split(" "); tokens2 scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int min = Integer.parseInt(tokens2[0]); min Integer.parseInt(tokens2[0]) Integer.parseInt Integer tokens2[0] tokens2 0 int count = 1; count 1 for ( int i = 1; i < tokens2.length; i++) {
			int val = Integer.parseInt(tokens2[i]);
			if (val <= min) {
				count++;
			}
			min = Math.min(min, val);
		} int i = 1; int i = 1; i 1 i < tokens2.length i tokens2.length tokens2 tokens2.length i++ i++ i {
			int val = Integer.parseInt(tokens2[i]);
			if (val <= min) {
				count++;
			}
			min = Math.min(min, val);
		} {
			int val = Integer.parseInt(tokens2[i]);
			if (val <= min) {
				count++;
			}
			min = Math.min(min, val);
		} int val = Integer.parseInt(tokens2[i]); val Integer.parseInt(tokens2[i]) Integer.parseInt Integer tokens2[i] tokens2 i if (val <= min) {
				count++;
			} val <= min val min {
				count++;
			} count++ count min = Math.min(min, val) min Math.min(min, val) Math.min Math min val System.out.print(count) System.out.print System.out System System.out count String[] args args
import java.util.Scanner;
import java.util.Arrays;
import java.lang.Integer;
import java.lang.Math;

class Main {
  public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
		String tokens1[] = scanner.nextLine().split(" ");
		String tokens2[] = scanner.nextLine().split(" ");
		int min = Integer.parseInt(tokens2[0]);
		int count = 1;
		for ( int i = 1; i < tokens2.length; i++) {
			int val = Integer.parseInt(tokens2[i]);
			if (val <= min) {
				count++;
			}
			min = Math.min(min, val);
		}
		System.out.print(count);
		

        
  }
}
