
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int maxHigh = 0;
		int view = 0;
		for(int i = 0; i < N; i++) {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		}
		System.out.println(view);
	}

} 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 maxHigh = 0;
		int view = 0;
		for(int i = 0; i < N; i++) {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		}
		System.out.println(view);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int maxHigh = 0;
		int view = 0;
		for(int i = 0; i < N; i++) {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		}
		System.out.println(view);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int maxHigh = 0;
		int view = 0;
		for(int i = 0; i < N; i++) {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		}
		System.out.println(view);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int maxHigh = 0; maxHigh 0 int view = 0; view 0 for(int i = 0; i < N; i++) {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		} {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		} int High = sc.nextInt(); High sc.nextInt() sc.nextInt sc if(maxHigh <= High) {
				maxHigh = High;
				view++;
			} maxHigh <= High maxHigh High {
				maxHigh = High;
				view++;
			} maxHigh = High maxHigh High view++ view System.out.println(view) System.out.println System.out System System.out view String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int maxHigh = 0;
		int view = 0;
		for(int i = 0; i < N; i++) {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		}
		System.out.println(view);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int maxHigh = 0;
		int view = 0;
		for(int i = 0; i < N; i++) {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		}
		System.out.println(view);
	}

} 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 maxHigh = 0;
		int view = 0;
		for(int i = 0; i < N; i++) {
			int High = sc.nextInt();
			if(maxHigh <= High) {
				maxHigh = High;
				view++;
			}
		}
		System.out.println(view);
	}

}
