import java.util.*;

public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int[] H = new int[N];
        int Hmax = 0;
        int c = 0;
        for(int i = 0;i < N;i++){
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        }
        System.out.println(c);
    }
} import java.util.*; util.* java public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int[] H = new int[N];
        int Hmax = 0;
        int c = 0;
        for(int i = 0;i < N;i++){
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        }
        System.out.println(c);
    }
} Main long INF = Long.MAX_VALUE; INF Long.MAX_VALUE Long Long.MAX_VALUE public static void main(String[] args) {
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args void solve() {
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int[] H = new int[N];
        int Hmax = 0;
        int c = 0;
        for(int i = 0;i < N;i++){
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        }
        System.out.println(c);
    } solve {
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int[] H = new int[N];
        int Hmax = 0;
        int c = 0;
        for(int i = 0;i < N;i++){
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        }
        System.out.println(c);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] H = new int[N]; H new int[N] N int Hmax = 0; Hmax 0 int c = 0; c 0 for(int i = 0;i < N;i++){
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        } {
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            } Hmax <= H[i] Hmax H[i] H i {
                Hmax = H[i];
                c++;
            } Hmax = H[i] Hmax H[i] H i c++ c System.out.println(c) System.out.println System.out System System.out c public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int[] H = new int[N];
        int Hmax = 0;
        int c = 0;
        for(int i = 0;i < N;i++){
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        }
        System.out.println(c);
    }
} public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int[] H = new int[N];
        int Hmax = 0;
        int c = 0;
        for(int i = 0;i < N;i++){
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        }
        System.out.println(c);
    }
} Main
import java.util.*;

public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int[] H = new int[N];
        int Hmax = 0;
        int c = 0;
        for(int i = 0;i < N;i++){
            H[i] = sc.nextInt();
            if(Hmax <= H[i]){
                Hmax = H[i];
                c++;
            }
        }
        System.out.println(c);
    }
}
