import java.io.*;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        String[] s = str.split(" ");
        int[] H = new int[N];
        for (int i=0;i<N;i++){
            H[i] = Integer.parseInt(s[i]);
        }
        int ans = 1;
        int mx = H[0];
        for (int i=1;i<N;i++){
            if (H[i]>=mx){
                ans++;
                mx = H[i];
            }
        }
        System.out.println(ans);
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        String[] s = str.split(" ");
        int[] H = new int[N];
        for (int i=0;i<N;i++){
            H[i] = Integer.parseInt(s[i]);
        }
        int ans = 1;
        int mx = H[0];
        for (int i=1;i<N;i++){
            if (H[i]>=mx){
                ans++;
                mx = H[i];
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        String[] s = str.split(" ");
        int[] H = new int[N];
        for (int i=0;i<N;i++){
            H[i] = Integer.parseInt(s[i]);
        }
        int ans = 1;
        int mx = H[0];
        for (int i=1;i<N;i++){
            if (H[i]>=mx){
                ans++;
                mx = H[i];
            }
        }
        System.out.println(ans);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        String[] s = str.split(" ");
        int[] H = new int[N];
        for (int i=0;i<N;i++){
            H[i] = Integer.parseInt(s[i]);
        }
        int ans = 1;
        int mx = H[0];
        for (int i=1;i<N;i++){
            if (H[i]>=mx){
                ans++;
                mx = H[i];
            }
        }
        System.out.println(ans);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int N = Integer.parseInt(str); N Integer.parseInt(str) Integer.parseInt Integer str str = br.readLine() str br.readLine() br.readLine br String[] s = str.split(" "); s str.split(" ") str.split str " " int[] H = new int[N]; H new int[N] N for (int i=0;i<N;i++){
            H[i] = Integer.parseInt(s[i]);
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            H[i] = Integer.parseInt(s[i]);
        } {
            H[i] = Integer.parseInt(s[i]);
        } H[i] = Integer.parseInt(s[i]) H[i] H i Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i int ans = 1; ans 1 int mx = H[0]; mx H[0] H 0 for (int i=1;i<N;i++){
            if (H[i]>=mx){
                ans++;
                mx = H[i];
            }
        } int i=1; int i=1; i 1 i<N i N i++ i++ i {
            if (H[i]>=mx){
                ans++;
                mx = H[i];
            }
        } {
            if (H[i]>=mx){
                ans++;
                mx = H[i];
            }
        } if (H[i]>=mx){
                ans++;
                mx = H[i];
            } H[i]>=mx H[i] H i mx {
                ans++;
                mx = H[i];
            } ans++ ans mx = H[i] mx H[i] H i System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.io.*;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        String[] s = str.split(" ");
        int[] H = new int[N];
        for (int i=0;i<N;i++){
            H[i] = Integer.parseInt(s[i]);
        }
        int ans = 1;
        int mx = H[0];
        for (int i=1;i<N;i++){
            if (H[i]>=mx){
                ans++;
                mx = H[i];
            }
        }
        System.out.println(ans);
    }
}