import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i< N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		for(int i = list.size() - 1; i >= 0; i--) {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		}
		System.out.println(ans);
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i< N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		for(int i = list.size() - 1; i >= 0; i--) {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		}
		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i< N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		for(int i = list.size() - 1; i >= 0; i--) {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i< N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		for(int i = list.size() - 1; i >= 0; i--) {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i = 0; i< N; i++) {
			list.add(Integer.parseInt(sc.next()));
		} int i = 0; int i = 0; i 0 i< N i N i++ i++ i {
			list.add(Integer.parseInt(sc.next()));
		} {
			list.add(Integer.parseInt(sc.next()));
		} list.add(Integer.parseInt(sc.next())) list.add list Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc int ans = 0; ans 0 for(int i = list.size() - 1; i >= 0; i--) {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		} int i = list.size() - 1; int i = list.size() - 1; i list.size() - 1 list.size() list.size list 1 i >= 0 i 0 i-- i-- i {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		} {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		} int tmp = list.get(i); tmp list.get(i) list.get list i boolean check = true; check true for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			} int j = i - 1; int j = i - 1; j i - 1 i 1 j >= 0 j 0 j-- j-- j {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			} {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			} if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				} list.get(j) <= tmp list.get(j) list.get list j tmp {
					continue;
				} continue; {
					check = false;
					break;
				} check = false check false break; if(check) ans++; check 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) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i< N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		for(int i = list.size() - 1; i >= 0; i--) {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		}
		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i< N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		for(int i = list.size() - 1; i >= 0; i--) {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		}
		System.out.println(ans);
	}

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i< N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		for(int i = list.size() - 1; i >= 0; i--) {
			int tmp = list.get(i);
			boolean check = true;
			for(int j = i - 1; j >= 0; j--) {
				if(list.get(j) <= tmp) {
					continue;
				}else {
					check = false;
					break;
				}
			}
			if(check) ans++;
		}
		System.out.println(ans);
	}

}