import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int h[] = new int[n];

		for(int i = 0; i < h.length; i++) {
			h[i] = sc.nextInt();
		}
		
		int view = 0;
		for(int i = 0; i < h.length; i++) {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) 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 h[] = new int[n];

		for(int i = 0; i < h.length; i++) {
			h[i] = sc.nextInt();
		}
		
		int view = 0;
		for(int i = 0; i < h.length; i++) {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) view++;
		}
		System.out.println(view);
		
	}

} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int h[] = new int[n];

		for(int i = 0; i < h.length; i++) {
			h[i] = sc.nextInt();
		}
		
		int view = 0;
		for(int i = 0; i < h.length; i++) {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) view++;
		}
		System.out.println(view);
		
	} main {
		
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int h[] = new int[n];

		for(int i = 0; i < h.length; i++) {
			h[i] = sc.nextInt();
		}
		
		int view = 0;
		for(int i = 0; i < h.length; i++) {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) 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 h[] = new int[n]; h new int[n] n for(int i = 0; i < h.length; i++) {
			h[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < h.length i h.length h h.length i++ i++ i {
			h[i] = sc.nextInt();
		} {
			h[i] = sc.nextInt();
		} h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int view = 0; view 0 for(int i = 0; i < h.length; i++) {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) view++;
		} int i = 0; int i = 0; i 0 i < h.length i h.length h h.length i++ i++ i {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) view++;
		} {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) view++;
		} int max = h[i]; max h[i] h i for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			} int j = i; int j = i; j i j >= 0 j 0 j-- j-- j {
				if(h[j] > h[i])	max = h[j]; 
			} {
				if(h[j] > h[i])	max = h[j]; 
			} if(h[j] > h[i])	max = h[j]; h[j] > h[i] h[j] h j h[i] h i max = h[j] max h[j] h j if(max == h[i]) view++; max == h[i] max h[i] h i 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 h[] = new int[n];

		for(int i = 0; i < h.length; i++) {
			h[i] = sc.nextInt();
		}
		
		int view = 0;
		for(int i = 0; i < h.length; i++) {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) 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 h[] = new int[n];

		for(int i = 0; i < h.length; i++) {
			h[i] = sc.nextInt();
		}
		
		int view = 0;
		for(int i = 0; i < h.length; i++) {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) 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 h[] = new int[n];

		for(int i = 0; i < h.length; i++) {
			h[i] = sc.nextInt();
		}
		
		int view = 0;
		for(int i = 0; i < h.length; i++) {
			int max = h[i];			
			for(int j = i; j >= 0; j--) {
				if(h[j] > h[i])	max = h[j]; 
			}
			if(max == h[i]) view++;
		}
		System.out.println(view);
		
	}

}
