import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		
		int highest = 0;
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			int h = sc.nextInt();
			if (h >= highest) cnt++;
			highest = Math.max(highest, h);
		}
		
		System.out.println(cnt);
		
		sc.close();
	}
	
}

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


