import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] list = new int[N];
		for (int i = 0; i < N; i++) {
			list[i] = sc.nextInt();
		}
		sc.close();

		int ans = 0;
		// 今見ている山
		for (int i = 0; i < N; i++) {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		}
		System.out.println(ans);

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

	public static void main(String[] args) {

		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] list = new int[N];
		for (int i = 0; i < N; i++) {
			list[i] = sc.nextInt();
		}
		sc.close();

		int ans = 0;
		// 今見ている山
		for (int i = 0; i < N; i++) {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		}
		System.out.println(ans);

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

		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] list = new int[N];
		for (int i = 0; i < N; i++) {
			list[i] = sc.nextInt();
		}
		sc.close();

		int ans = 0;
		// 今見ている山
		for (int i = 0; i < N; i++) {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		}
		System.out.println(ans);

	} main {

		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] list = new int[N];
		for (int i = 0; i < N; i++) {
			list[i] = sc.nextInt();
		}
		sc.close();

		int ans = 0;
		// 今見ている山
		for (int i = 0; i < N; i++) {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		}
		System.out.println(ans);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] list = new int[N]; list new int[N] N for (int i = 0; i < N; i++) {
			list[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			list[i] = sc.nextInt();
		} {
			list[i] = sc.nextInt();
		} list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int ans = 0; ans 0 for (int i = 0; i < N; i++) {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		} {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		} boolean flag = true; flag true for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			} int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
				if (list[j] > list[i]) {
					flag = false;
				}

			} {
				if (list[j] > list[i]) {
					flag = false;
				}

			} if (list[j] > list[i]) {
					flag = false;
				} list[j] > list[i] list[j] list j list[i] list i {
					flag = false;
				} flag = false flag false if (flag)
				ans++; flag 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 = sc.nextInt();

		int[] list = new int[N];
		for (int i = 0; i < N; i++) {
			list[i] = sc.nextInt();
		}
		sc.close();

		int ans = 0;
		// 今見ている山
		for (int i = 0; i < N; i++) {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		}
		System.out.println(ans);

	}
} public class Main {

	public static void main(String[] args) {

		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] list = new int[N];
		for (int i = 0; i < N; i++) {
			list[i] = sc.nextInt();
		}
		sc.close();

		int ans = 0;
		// 今見ている山
		for (int i = 0; i < N; i++) {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		}
		System.out.println(ans);

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] list = new int[N];
		for (int i = 0; i < N; i++) {
			list[i] = sc.nextInt();
		}
		sc.close();

		int ans = 0;
		// 今見ている山
		for (int i = 0; i < N; i++) {

			boolean flag = true;

			for (int j = 0; j < i; j++) {
				if (list[j] > list[i]) {
					flag = false;
				}

			}
			if (flag)
				ans++;
		}
		System.out.println(ans);

	}
}
