import java.util.Scanner;
class Main{
    public static void main(String[] arsg){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] l = new int[N];
        int ans = 0;
        int c = l[0];
        for(int i = 0;i < N;i++){
            l[i] = sc.nextInt();
        }
        
        for(int i = 0;i < N;i++){
            if(c <= l[i]){
                ans += 1;
                c = l[i];
            }
        }

       System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] arsg){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] l = new int[N];
        int ans = 0;
        int c = l[0];
        for(int i = 0;i < N;i++){
            l[i] = sc.nextInt();
        }
        
        for(int i = 0;i < N;i++){
            if(c <= l[i]){
                ans += 1;
                c = l[i];
            }
        }

       System.out.println(ans);
    }
} Main public static void main(String[] arsg){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] l = new int[N];
        int ans = 0;
        int c = l[0];
        for(int i = 0;i < N;i++){
            l[i] = sc.nextInt();
        }
        
        for(int i = 0;i < N;i++){
            if(c <= l[i]){
                ans += 1;
                c = l[i];
            }
        }

       System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] l = new int[N];
        int ans = 0;
        int c = l[0];
        for(int i = 0;i < N;i++){
            l[i] = sc.nextInt();
        }
        
        for(int i = 0;i < N;i++){
            if(c <= l[i]){
                ans += 1;
                c = l[i];
            }
        }

       System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] l = new int[N]; l new int[N] N int ans = 0; ans 0 int c = l[0]; c l[0] l 0 for(int i = 0;i < N;i++){
            l[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            l[i] = sc.nextInt();
        } {
            l[i] = sc.nextInt();
        } l[i] = sc.nextInt() l[i] l i sc.nextInt() sc.nextInt sc for(int i = 0;i < N;i++){
            if(c <= l[i]){
                ans += 1;
                c = l[i];
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(c <= l[i]){
                ans += 1;
                c = l[i];
            }
        } {
            if(c <= l[i]){
                ans += 1;
                c = l[i];
            }
        } if(c <= l[i]){
                ans += 1;
                c = l[i];
            } c <= l[i] c l[i] l i {
                ans += 1;
                c = l[i];
            } ans += 1 ans 1 c = l[i] c l[i] l i System.out.println(ans) System.out.println System.out System System.out ans String[] arsg arsg
import java.util.Scanner;
class Main{
    public static void main(String[] arsg){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] l = new int[N];
        int ans = 0;
        int c = l[0];
        for(int i = 0;i < N;i++){
            l[i] = sc.nextInt();
        }
        
        for(int i = 0;i < N;i++){
            if(c <= l[i]){
                ans += 1;
                c = l[i];
            }
        }

       System.out.println(ans);
    }
}