import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int n = scan.nextInt();
      	int[] h = new int[n];
      	for (int i = 0; i < n; i++){
        	h[i] = scan.nextInt();
        }
      	int max = h[0];
      	int counter = 1;
      	for (int j = 0; j < n - 1; j ++){
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        }
      	System.out.print(counter);
    
    }
 
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int n = scan.nextInt();
      	int[] h = new int[n];
      	for (int i = 0; i < n; i++){
        	h[i] = scan.nextInt();
        }
      	int max = h[0];
      	int counter = 1;
      	for (int j = 0; j < n - 1; j ++){
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        }
      	System.out.print(counter);
    
    }
 
} Main public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int n = scan.nextInt();
      	int[] h = new int[n];
      	for (int i = 0; i < n; i++){
        	h[i] = scan.nextInt();
        }
      	int max = h[0];
      	int counter = 1;
      	for (int j = 0; j < n - 1; j ++){
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        }
      	System.out.print(counter);
    
    } main {
    	Scanner scan = new Scanner(System.in);
      	int n = scan.nextInt();
      	int[] h = new int[n];
      	for (int i = 0; i < n; i++){
        	h[i] = scan.nextInt();
        }
      	int max = h[0];
      	int counter = 1;
      	for (int j = 0; j < n - 1; j ++){
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        }
      	System.out.print(counter);
    
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] h = new int[n]; h new int[n] n for (int i = 0; i < n; i++){
        	h[i] = scan.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	h[i] = scan.nextInt();
        } {
        	h[i] = scan.nextInt();
        } h[i] = scan.nextInt() h[i] h i scan.nextInt() scan.nextInt scan int max = h[0]; max h[0] h 0 int counter = 1; counter 1 for (int j = 0; j < n - 1; j ++){
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        } int j = 0; int j = 0; j 0 j < n - 1 j n - 1 n 1 j ++ j ++ j {
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        } {
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        } if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            } max <= h[j + 1] max h[j + 1] h j + 1 j 1 {
            	max = h[j + 1];
              	counter++;
            } max = h[j + 1] max h[j + 1] h j + 1 j 1 counter++ counter System.out.print(counter) System.out.print System.out System System.out counter String[] args args public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int n = scan.nextInt();
      	int[] h = new int[n];
      	for (int i = 0; i < n; i++){
        	h[i] = scan.nextInt();
        }
      	int max = h[0];
      	int counter = 1;
      	for (int j = 0; j < n - 1; j ++){
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        }
      	System.out.print(counter);
    
    }
 
} public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int n = scan.nextInt();
      	int[] h = new int[n];
      	for (int i = 0; i < n; i++){
        	h[i] = scan.nextInt();
        }
      	int max = h[0];
      	int counter = 1;
      	for (int j = 0; j < n - 1; j ++){
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        }
      	System.out.print(counter);
    
    }
 
} Main
import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int n = scan.nextInt();
      	int[] h = new int[n];
      	for (int i = 0; i < n; i++){
        	h[i] = scan.nextInt();
        }
      	int max = h[0];
      	int counter = 1;
      	for (int j = 0; j < n - 1; j ++){
        	if(max <= h[j + 1]){
            	max = h[j + 1];
              	counter++;
            }
        }
      	System.out.print(counter);
    
    }
 
}