import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int before = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		}

		System.out.println(cnt);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int before = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		}

		System.out.println(cnt);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int before = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		}

		System.out.println(cnt);
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int before = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		}

		System.out.println(cnt);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int before = 0; before 0 int cnt = 0; cnt 0 for (int i = 0; i < N; i++) {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		} {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		} int H = scan.nextInt(); H scan.nextInt() scan.nextInt scan if (before <= H) {
				cnt++;
			} before <= H before H {
				cnt++;
			} cnt++ cnt if (H > before) {
				before = H;
			} H > before H before {
				before = H;
			} before = H before H System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int before = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		}

		System.out.println(cnt);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int before = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		}

		System.out.println(cnt);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int before = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();

			if (before <= H) {
				cnt++;
			}
			if (H > before) {
				before = H;
			}
		}

		System.out.println(cnt);
	}
}