import java.util.PriorityQueue;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		try(Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		}

	}

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

	public static void main(String[] args) {

		try(Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		}

	}

} Main public static void main(String[] args) {

		try(Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		}

	} main {

		try(Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		}

	} try(Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		} {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc PriorityQueue<Integer> q = new PriorityQueue<>(); q new PriorityQueue<>() int ans = 0; ans 0 for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			} int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			} {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			} int now = sc.nextInt(); now sc.nextInt() sc.nextInt sc q.add(now) q.add q now if(now == q.peek()) {
					ans++;
				} now == q.peek() now q.peek() q.peek q {
					ans++;
				} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {

		try(Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		}

	}

} public class Main {

	public static void main(String[] args) {

		try(Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		}

	}

} Main
import java.util.PriorityQueue;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		try(Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			PriorityQueue<Integer> q = new PriorityQueue<>();
			int ans = 0;
			for(int i = 0 ; i < n ; i++) {
				int now = sc.nextInt();
				q.add(now);
				if(now == q.peek()) {
					ans++;
				}
			}

			System.out.println(ans);
		}

	}

}
