import java.util.Scanner;
public class Main{

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

} import java.util.Scanner; Scanner java.util public class Main{

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

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

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

} public class Main{

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

} Main
import java.util.Scanner;
public class Main{

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

}
