import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] h = new int[n];
		int max = 0;
		int ans = 0;
		for(int i = 0; i < n; i++){
			h[i] = sc.nextInt();
			max = Math.max(h[i],max);
			if(h[i] >= max){
				ans++;
			}
		}
		System.out.print(ans);
	}
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] h = new int[n];
		int max = 0;
		int ans = 0;
		for(int i = 0; i < n; i++){
			h[i] = sc.nextInt();
			max = Math.max(h[i],max);
			if(h[i] >= max){
				ans++;
			}
		}
		System.out.print(ans);
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] h = new int[n];
		int max = 0;
		int ans = 0;
		for(int i = 0; i < n; i++){
			h[i] = sc.nextInt();
			max = Math.max(h[i],max);
			if(h[i] >= max){
				ans++;
			}
		}
		System.out.print(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] h = new int[n];
		int max = 0;
		int ans = 0;
		for(int i = 0; i < n; i++){
			h[i] = sc.nextInt();
			max = Math.max(h[i],max);
			if(h[i] >= max){
				ans++;
			}
		}
		System.out.print(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] h = new int[n]; h new int[n] n int max = 0; max 0 int ans = 0; ans 0 for(int i = 0; i < n; i++){
			h[i] = sc.nextInt();
			max = Math.max(h[i],max);
			if(h[i] >= max){
				ans++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			h[i] = sc.nextInt();
			max = Math.max(h[i],max);
			if(h[i] >= max){
				ans++;
			}
		} {
			h[i] = sc.nextInt();
			max = Math.max(h[i],max);
			if(h[i] >= max){
				ans++;
			}
		} h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc max = Math.max(h[i],max) max Math.max(h[i],max) Math.max Math h[i] h i max if(h[i] >= max){
				ans++;
			} h[i] >= max h[i] h i max {
				ans++;
			} ans++ ans System.out.print(ans) System.out.print System.out System System.out ans String args[] args
import java.util.*;

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