import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] map = new int[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextInt();
		}
		
		int ans = 1;
		int max = map[0];
		for (int i = 1; i < N; i++) {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		}
		
		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[] map = new int[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextInt();
		}
		
		int ans = 1;
		int max = map[0];
		for (int i = 1; i < N; i++) {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		}
		
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] map = new int[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextInt();
		}
		
		int ans = 1;
		int max = map[0];
		for (int i = 1; i < N; i++) {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		}
		
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] map = new int[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextInt();
		}
		
		int ans = 1;
		int max = map[0];
		for (int i = 1; i < N; i++) {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		}
		
		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[] map = new int[N]; map new int[N] N for (int i = 0; i < N; i++) {
			map[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			map[i] = sc.nextInt();
		} {
			map[i] = sc.nextInt();
		} map[i] = sc.nextInt() map[i] map i sc.nextInt() sc.nextInt sc int ans = 1; ans 1 int max = map[0]; max map[0] map 0 for (int i = 1; i < N; i++) {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		} int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		} {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		} if (max <= map[i]) {
				ans++;
			} max <= map[i] max map[i] map i {
				ans++;
			} ans++ ans max = Math.max(max, map[i]) max Math.max(max, map[i]) Math.max Math max map[i] map i 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[] map = new int[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextInt();
		}
		
		int ans = 1;
		int max = map[0];
		for (int i = 1; i < N; i++) {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		}
		
		System.out.println(ans);
	}
} public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] map = new int[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextInt();
		}
		
		int ans = 1;
		int max = map[0];
		for (int i = 1; i < N; i++) {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		}
		
		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[] map = new int[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextInt();
		}
		
		int ans = 1;
		int max = map[0];
		for (int i = 1; i < N; i++) {
			if (max <= map[i]) {
				ans++;
			}
			
			max = Math.max(max, map[i]);
		}
		
		System.out.println(ans);
	}
}
