import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] h = new int[n];
        for(int i=0;i<n;i++){
            h[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int max = 0;
        int res = 0;
        for(int i=0;i<n;i++){
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        }
        System.out.println(res);
    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] h = new int[n];
        for(int i=0;i<n;i++){
            h[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int max = 0;
        int res = 0;
        for(int i=0;i<n;i++){
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        }
        System.out.println(res);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] h = new int[n];
        for(int i=0;i<n;i++){
            h[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int max = 0;
        int res = 0;
        for(int i=0;i<n;i++){
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        }
        System.out.println(res);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] h = new int[n];
        for(int i=0;i<n;i++){
            h[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int max = 0;
        int res = 0;
        for(int i=0;i<n;i++){
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        }
        System.out.println(res);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] h = new int[n]; h new int[n] n for(int i=0;i<n;i++){
            h[i] = Integer.parseInt(sc.next());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            h[i] = Integer.parseInt(sc.next());
        } {
            h[i] = Integer.parseInt(sc.next());
        } h[i] = Integer.parseInt(sc.next()) h[i] h i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc int max = 0; max 0 int res = 0; res 0 for(int i=0;i<n;i++){
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        } {
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        } if(h[i] >= max){
                res++;
            } h[i] >= max h[i] h i max {
                res++;
            } res++ res max = Math.max(max,h[i]) max Math.max(max,h[i]) Math.max Math max h[i] h i System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] h = new int[n];
        for(int i=0;i<n;i++){
            h[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int max = 0;
        int res = 0;
        for(int i=0;i<n;i++){
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        }
        System.out.println(res);
    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] h = new int[n];
        for(int i=0;i<n;i++){
            h[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int max = 0;
        int res = 0;
        for(int i=0;i<n;i++){
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        }
        System.out.println(res);
    }

} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] h = new int[n];
        for(int i=0;i<n;i++){
            h[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int max = 0;
        int res = 0;
        for(int i=0;i<n;i++){
            if(h[i] >= max){
                res++;
            }
            max = Math.max(max,h[i]);
        }
        System.out.println(res);
    }

}