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

public class Main {

	public static void main(String[] args) {
		int N = 0;
		Scanner sc = new Scanner(System.in);
		N = Integer.parseInt(sc.next());
		ArrayList<String> ary = new ArrayList<String>();
		int max = 0;
		int count = 0;
		for (int i = 0; i < N; i++) {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		}
		System.out.println(count);
	}

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

	public static void main(String[] args) {
		int N = 0;
		Scanner sc = new Scanner(System.in);
		N = Integer.parseInt(sc.next());
		ArrayList<String> ary = new ArrayList<String>();
		int max = 0;
		int count = 0;
		for (int i = 0; i < N; i++) {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		}
		System.out.println(count);
	}

} Main public static void main(String[] args) {
		int N = 0;
		Scanner sc = new Scanner(System.in);
		N = Integer.parseInt(sc.next());
		ArrayList<String> ary = new ArrayList<String>();
		int max = 0;
		int count = 0;
		for (int i = 0; i < N; i++) {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		}
		System.out.println(count);
	} main {
		int N = 0;
		Scanner sc = new Scanner(System.in);
		N = Integer.parseInt(sc.next());
		ArrayList<String> ary = new ArrayList<String>();
		int max = 0;
		int count = 0;
		for (int i = 0; i < N; i++) {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		}
		System.out.println(count);
	} int N = 0; N 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) N = Integer.parseInt(sc.next()) N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ArrayList<String> ary = new ArrayList<String>(); ary new ArrayList<String>() int max = 0; max 0 int count = 0; count 0 for (int i = 0; i < N; i++) {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		} {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		} int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (n >= max) {
				max = n;
				count++;
			} n >= max n max {
				max = n;
				count++;
			} max = n max n count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		int N = 0;
		Scanner sc = new Scanner(System.in);
		N = Integer.parseInt(sc.next());
		ArrayList<String> ary = new ArrayList<String>();
		int max = 0;
		int count = 0;
		for (int i = 0; i < N; i++) {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		}
		System.out.println(count);
	}

} public class Main {

	public static void main(String[] args) {
		int N = 0;
		Scanner sc = new Scanner(System.in);
		N = Integer.parseInt(sc.next());
		ArrayList<String> ary = new ArrayList<String>();
		int max = 0;
		int count = 0;
		for (int i = 0; i < N; i++) {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		}
		System.out.println(count);
	}

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

public class Main {

	public static void main(String[] args) {
		int N = 0;
		Scanner sc = new Scanner(System.in);
		N = Integer.parseInt(sc.next());
		ArrayList<String> ary = new ArrayList<String>();
		int max = 0;
		int count = 0;
		for (int i = 0; i < N; i++) {
			int n = Integer.parseInt(sc.next());
			if (n >= max) {
				max = n;
				count++;
			}
		}
		System.out.println(count);
	}

}