import java.util.Arrays;
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());
        }

        int first = H[0];
        int[] extH = Arrays.copyOfRange(H, 1, N);

        int viewCnt = 1;
        int max = first;
        for (int i : extH) {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        }

        System.out.println(viewCnt);
    }
} import java.util.Arrays; Arrays 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 = Integer.parseInt(sc.next());
        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(sc.next());
        }

        int first = H[0];
        int[] extH = Arrays.copyOfRange(H, 1, N);

        int viewCnt = 1;
        int max = first;
        for (int i : extH) {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        }

        System.out.println(viewCnt);
    }
} 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());
        }

        int first = H[0];
        int[] extH = Arrays.copyOfRange(H, 1, N);

        int viewCnt = 1;
        int max = first;
        for (int i : extH) {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        }

        System.out.println(viewCnt);
    } 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());
        }

        int first = H[0];
        int[] extH = Arrays.copyOfRange(H, 1, N);

        int viewCnt = 1;
        int max = first;
        for (int i : extH) {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        }

        System.out.println(viewCnt);
    } 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 int first = H[0]; first H[0] H 0 int[] extH = Arrays.copyOfRange(H, 1, N); extH Arrays.copyOfRange(H, 1, N) Arrays.copyOfRange Arrays H 1 N int viewCnt = 1; viewCnt 1 int max = first; max first for (int i : extH) {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        } int i extH {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        } {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        } max = Math.max(i, max) max Math.max(i, max) Math.max Math i max if (i >= max) {
                viewCnt++;
            } i >= max i max {
                viewCnt++;
            } viewCnt++ viewCnt System.out.println(viewCnt) System.out.println System.out System System.out viewCnt 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());
        }

        int first = H[0];
        int[] extH = Arrays.copyOfRange(H, 1, N);

        int viewCnt = 1;
        int max = first;
        for (int i : extH) {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        }

        System.out.println(viewCnt);
    }
} 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());
        }

        int first = H[0];
        int[] extH = Arrays.copyOfRange(H, 1, N);

        int viewCnt = 1;
        int max = first;
        for (int i : extH) {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        }

        System.out.println(viewCnt);
    }
} Main
import java.util.Arrays;
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());
        }

        int first = H[0];
        int[] extH = Arrays.copyOfRange(H, 1, N);

        int viewCnt = 1;
        int max = first;
        for (int i : extH) {
            max = Math.max(i, max);
            if (i >= max) {
                viewCnt++;
            }
        }

        System.out.println(viewCnt);
    }
}
