import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    
	    int count = 1;
	    int max = sc.nextInt();
	    
	    for (int i=1; i<N; i++){
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    }
	    System.out.println(count);
		sc.close();
	}

} 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 count = 1;
	    int max = sc.nextInt();
	    
	    for (int i=1; i<N; i++){
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    }
	    System.out.println(count);
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    
	    int count = 1;
	    int max = sc.nextInt();
	    
	    for (int i=1; i<N; i++){
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    }
	    System.out.println(count);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    
	    int count = 1;
	    int max = sc.nextInt();
	    
	    for (int i=1; i<N; i++){
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    }
	    System.out.println(count);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int count = 1; count 1 int max = sc.nextInt(); max sc.nextInt() sc.nextInt sc for (int i=1; i<N; i++){
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    } int i=1; int i=1; i 1 i<N i N i++ i++ i {
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    } {
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    } int temp = sc.nextInt(); temp sc.nextInt() sc.nextInt sc if (temp>=max){
	    		count++;
	    		max=temp;
	    	} temp>=max temp max {
	    		count++;
	    		max=temp;
	    	} count++ count max=temp max temp System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    
	    int count = 1;
	    int max = sc.nextInt();
	    
	    for (int i=1; i<N; i++){
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    }
	    System.out.println(count);
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    
	    int count = 1;
	    int max = sc.nextInt();
	    
	    for (int i=1; i<N; i++){
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    }
	    System.out.println(count);
		sc.close();
	}

} 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 count = 1;
	    int max = sc.nextInt();
	    
	    for (int i=1; i<N; i++){
	    	int temp = sc.nextInt();
	    	
	    	if (temp>=max){
	    		count++;
	    		max=temp;
	    	}
	    }
	    System.out.println(count);
		sc.close();
	}

}