import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] mount = new int[N];
        
        for(int i = 0 ; i < N ; i++){
            mount[i] = sc.nextInt();
        }
        
        int cnt = 1;
        int max = 0;
        
        for(int m = 1 ; m < N ; m++){
            if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            }
        }
        System.out.println(cnt);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] mount = new int[N];
        
        for(int i = 0 ; i < N ; i++){
            mount[i] = sc.nextInt();
        }
        
        int cnt = 1;
        int max = 0;
        
        for(int m = 1 ; m < N ; m++){
            if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            }
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] mount = new int[N];
        
        for(int i = 0 ; i < N ; i++){
            mount[i] = sc.nextInt();
        }
        
        int cnt = 1;
        int max = 0;
        
        for(int m = 1 ; m < N ; m++){
            if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            }
        }
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] mount = new int[N];
        
        for(int i = 0 ; i < N ; i++){
            mount[i] = sc.nextInt();
        }
        
        int cnt = 1;
        int max = 0;
        
        for(int m = 1 ; m < N ; m++){
            if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            }
        }
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] mount = new int[N]; mount new int[N] N for(int i = 0 ; i < N ; i++){
            mount[i] = sc.nextInt();
        } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
            mount[i] = sc.nextInt();
        } {
            mount[i] = sc.nextInt();
        } mount[i] = sc.nextInt() mount[i] mount i sc.nextInt() sc.nextInt sc int cnt = 1; cnt 1 int max = 0; max 0 for(int m = 1 ; m < N ; m++){
            if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            }
        } int m = 1 ; int m = 1 ; m 1 m < N m N m++ m++ m {
            if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            }
        } {
            if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            }
        } if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            } (mount[0] <= mount[m]) && max <= mount[m] (mount[0] <= mount[m]) mount[0] mount 0 mount[m] mount m max <= mount[m] max mount[m] mount m {
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            } cnt += 1 cnt 1 if(max < mount[m]) {
                	max = mount[m];
                } max < mount[m] max mount[m] mount m {
                	max = mount[m];
                } max = mount[m] max mount[m] mount m System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] mount = new int[N];
        
        for(int i = 0 ; i < N ; i++){
            mount[i] = sc.nextInt();
        }
        
        int cnt = 1;
        int max = 0;
        
        for(int m = 1 ; m < N ; m++){
            if((mount[0] <= mount[m]) && max <= mount[m]){
                cnt += 1;
                if(max < mount[m]) {
                	max = mount[m];
                }
            }
        }
        System.out.println(cnt);
    }
}