import java.util.Map;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        int max = H[0];
        int cnt = 1;

        for (int i = 1; i < N ; i++) {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        }

        System.out.println(cnt);
    }
} import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        int max = H[0];
        int cnt = 1;

        for (int i = 1; i < N ; i++) {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        }

        System.out.println(cnt);
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        int max = H[0];
        int cnt = 1;

        for (int i = 1; i < N ; i++) {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        }

        System.out.println(cnt);
    } main {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        int max = H[0];
        int cnt = 1;

        for (int i = 1; i < N ; i++) {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        }

        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[] H = new int[N]; H new int[N] N for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            H[i] = sc.nextInt();
        } {
            H[i] = sc.nextInt();
        } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc int max = H[0]; max H[0] H 0 int cnt = 1; cnt 1 for (int i = 1; i < N ; i++) {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        } {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        } if (max <= H[i]) {
                max = H[i];
                cnt++;
            } max <= H[i] max H[i] H i {
                max = H[i];
                cnt++;
            } max = H[i] max H[i] H i cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        int max = H[0];
        int cnt = 1;

        for (int i = 1; i < N ; i++) {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        }

        System.out.println(cnt);
    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        int max = H[0];
        int cnt = 1;

        for (int i = 1; i < N ; i++) {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        }

        System.out.println(cnt);
    }
} Main
import java.util.Map;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        int max = H[0];
        int cnt = 1;

        for (int i = 1; i < N ; i++) {
            if (max <= H[i]) {
                max = H[i];
                cnt++;
            }
        }

        System.out.println(cnt);
    }
}
