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