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];
    
    int see = 0;
    int cou = 0;
    for(int i=0; i<N; i++) {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    }
         System.out.println(cou);        
      }
} 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];
    
    int see = 0;
    int cou = 0;
    for(int i=0; i<N; i++) {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    }
         System.out.println(cou);        
      }
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]H = new int[N];
    
    int see = 0;
    int cou = 0;
    for(int i=0; i<N; i++) {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    }
         System.out.println(cou);        
      } main {
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]H = new int[N];
    
    int see = 0;
    int cou = 0;
    for(int i=0; i<N; i++) {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    }
         System.out.println(cou);        
      } 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 see = 0; see 0 int cou = 0; cou 0 for(int i=0; i<N; i++) {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    } {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	} H[i] >= see H[i] H i see {
     		cou++;
    		see = H[i]; 
    	} cou++ cou see = H[i] see H[i] H i System.out.println(cou) System.out.println System.out System System.out cou 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];
    
    int see = 0;
    int cou = 0;
    for(int i=0; i<N; i++) {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    }
         System.out.println(cou);        
      }
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]H = new int[N];
    
    int see = 0;
    int cou = 0;
    for(int i=0; i<N; i++) {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    }
         System.out.println(cou);        
      }
} 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];
    
    int see = 0;
    int cou = 0;
    for(int i=0; i<N; i++) {		
    	H[i] = sc.nextInt();
    	if(H[i] >= see) {
     		cou++;
    		see = H[i]; 
    	}		
    }
         System.out.println(cou);        
      }
}