import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		int [] mountain = new int [a];

		for (int i = 0; i < a; i++) {
			mountain[i] = sc.nextInt();
		}

		int count = 0;

		for (int i = 1; i < mountain.length; i++) {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		}

		System.out.println(a - count);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		int [] mountain = new int [a];

		for (int i = 0; i < a; i++) {
			mountain[i] = sc.nextInt();
		}

		int count = 0;

		for (int i = 1; i < mountain.length; i++) {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		}

		System.out.println(a - count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		int [] mountain = new int [a];

		for (int i = 0; i < a; i++) {
			mountain[i] = sc.nextInt();
		}

		int count = 0;

		for (int i = 1; i < mountain.length; i++) {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		}

		System.out.println(a - count);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		int [] mountain = new int [a];

		for (int i = 0; i < a; i++) {
			mountain[i] = sc.nextInt();
		}

		int count = 0;

		for (int i = 1; i < mountain.length; i++) {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		}

		System.out.println(a - count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int [] mountain = new int [a]; mountain new int [a] a for (int i = 0; i < a; i++) {
			mountain[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			mountain[i] = sc.nextInt();
		} {
			mountain[i] = sc.nextInt();
		} mountain[i] = sc.nextInt() mountain[i] mountain i sc.nextInt() sc.nextInt sc int count = 0; count 0 for (int i = 1; i < mountain.length; i++) {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		} int i = 1; int i = 1; i 1 i < mountain.length i mountain.length mountain mountain.length i++ i++ i {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		} {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		} for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			} int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			} {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			} if (mountain[i] < mountain[j]) {
					count++;
					break;
				} mountain[i] < mountain[j] mountain[i] mountain i mountain[j] mountain j {
					count++;
					break;
				} count++ count break; System.out.println(a - count) System.out.println System.out System System.out a - count a count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		int [] mountain = new int [a];

		for (int i = 0; i < a; i++) {
			mountain[i] = sc.nextInt();
		}

		int count = 0;

		for (int i = 1; i < mountain.length; i++) {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		}

		System.out.println(a - count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		int [] mountain = new int [a];

		for (int i = 0; i < a; i++) {
			mountain[i] = sc.nextInt();
		}

		int count = 0;

		for (int i = 1; i < mountain.length; i++) {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		}

		System.out.println(a - count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		int [] mountain = new int [a];

		for (int i = 0; i < a; i++) {
			mountain[i] = sc.nextInt();
		}

		int count = 0;

		for (int i = 1; i < mountain.length; i++) {
			for (int j = 0; j < i; j++) {
				if (mountain[i] < mountain[j]) {
					count++;
					break;
				}
			}

		}

		System.out.println(a - count);
	}
}