import java.util.*;

class Main {
    static public void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] Hs = new int[N];

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

        int max = Hs[0];
        int result = 1;

        for (int i=1; i<N; i++) {
            if (Hs[i] >= max) {
                result++;
            }
            max = Hs[i] > max ? Hs[i] : max;
        }

        System.out.println(result);
    }
} import java.util.*; util.* java class Main {
    static public void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] Hs = new int[N];

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

        int max = Hs[0];
        int result = 1;

        for (int i=1; i<N; i++) {
            if (Hs[i] >= max) {
                result++;
            }
            max = Hs[i] > max ? Hs[i] : max;
        }

        System.out.println(result);
    }
} Main static public void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] Hs = new int[N];

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

        int max = Hs[0];
        int result = 1;

        for (int i=1; i<N; i++) {
            if (Hs[i] >= max) {
                result++;
            }
            max = Hs[i] > max ? Hs[i] : max;
        }

        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] Hs = new int[N];

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

        int max = Hs[0];
        int result = 1;

        for (int i=1; i<N; i++) {
            if (Hs[i] >= max) {
                result++;
            }
            max = Hs[i] > max ? Hs[i] : max;
        }

        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] Hs = new int[N]; Hs new int[N] N for (int i=0; i<N; i++) {
            Hs[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            Hs[i] = sc.nextInt();
        } {
            Hs[i] = sc.nextInt();
        } Hs[i] = sc.nextInt() Hs[i] Hs i sc.nextInt() sc.nextInt sc int max = Hs[0]; max Hs[0] Hs 0 int result = 1; result 1 for (int i=1; i<N; i++) {
            if (Hs[i] >= max) {
                result++;
            }
            max = Hs[i] > max ? Hs[i] : max;
        } int i=1; int i=1; i 1 i<N i N i++ i++ i {
            if (Hs[i] >= max) {
                result++;
            }
            max = Hs[i] > max ? Hs[i] : max;
        } {
            if (Hs[i] >= max) {
                result++;
            }
            max = Hs[i] > max ? Hs[i] : max;
        } if (Hs[i] >= max) {
                result++;
            } Hs[i] >= max Hs[i] Hs i max {
                result++;
            } result++ result max = Hs[i] > max ? Hs[i] : max max Hs[i] > max ? Hs[i] : max Hs[i] > max Hs[i] Hs i max Hs[i] Hs i max System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.util.*;

class Main {
    static public void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] Hs = new int[N];

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

        int max = Hs[0];
        int result = 1;

        for (int i=1; i<N; i++) {
            if (Hs[i] >= max) {
                result++;
            }
            max = Hs[i] > max ? Hs[i] : max;
        }

        System.out.println(result);
    }
}
