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 high = 0;
    int cou = 0;
    for(int i=0; i<n; i++) {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    }     	
    	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 high = 0;
    int cou = 0;
    for(int i=0; i<n; i++) {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    }     	
    	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 high = 0;
    int cou = 0;
    for(int i=0; i<n; i++) {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    }     	
    	System.out.println(cou);
    } main {
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[]h = new int[n];
        
    int high = 0;
    int cou = 0;
    for(int i=0; i<n; i++) {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    }     	
    	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 high = 0; high 0 int cou = 0; cou 0 for(int i=0; i<n; i++) {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    } {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc if(h[i] >= high) {
    		high = h[i];
    		cou++;
    } h[i] >= high h[i] h i high {
    		high = h[i];
    		cou++;
    } high = h[i] high h[i] h i cou++ cou 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 high = 0;
    int cou = 0;
    for(int i=0; i<n; i++) {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    }     	
    	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 high = 0;
    int cou = 0;
    for(int i=0; i<n; i++) {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    }     	
    	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 high = 0;
    int cou = 0;
    for(int i=0; i<n; i++) {
    	h[i] = sc.nextInt();
    	if(h[i] >= high) {
    		high = h[i];
    		cou++;
    }
    }     	
    	System.out.println(cou);
    }
}


