import 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();
        System.out.println(helper(H));
        sc.close();
    }

    public static int helper(int[] A) {
        int res = 0, max = A[0];
        for (int a : A) {
            if (a >= max) {
                max = a;
                res++;
            }
        }
        return res;
    }
} import java.util.*; util.* java 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();
        System.out.println(helper(H));
        sc.close();
    }

    public static int helper(int[] A) {
        int res = 0, max = A[0];
        for (int a : A) {
            if (a >= max) {
                max = a;
                res++;
            }
        }
        return res;
    }
} 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();
        System.out.println(helper(H));
        sc.close();
    } 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();
        System.out.println(helper(H));
        sc.close();
    } 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] H i sc.nextInt() sc.nextInt sc System.out.println(helper(H)) System.out.println System.out System System.out helper(H) helper H sc.close() sc.close sc String[] args args public static int helper(int[] A) {
        int res = 0, max = A[0];
        for (int a : A) {
            if (a >= max) {
                max = a;
                res++;
            }
        }
        return res;
    } helper {
        int res = 0, max = A[0];
        for (int a : A) {
            if (a >= max) {
                max = a;
                res++;
            }
        }
        return res;
    } int res = 0 res 0 max = A[0]; max A[0] A 0 for (int a : A) {
            if (a >= max) {
                max = a;
                res++;
            }
        } int a A {
            if (a >= max) {
                max = a;
                res++;
            }
        } {
            if (a >= max) {
                max = a;
                res++;
            }
        } if (a >= max) {
                max = a;
                res++;
            } a >= max a max {
                max = a;
                res++;
            } max = a max a res++ res return res; res int[] A A 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();
        System.out.println(helper(H));
        sc.close();
    }

    public static int helper(int[] A) {
        int res = 0, max = A[0];
        for (int a : A) {
            if (a >= max) {
                max = a;
                res++;
            }
        }
        return res;
    }
} 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();
        System.out.println(helper(H));
        sc.close();
    }

    public static int helper(int[] A) {
        int res = 0, max = A[0];
        for (int a : A) {
            if (a >= max) {
                max = a;
                res++;
            }
        }
        return res;
    }
} Main
import 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();
        System.out.println(helper(H));
        sc.close();
    }

    public static int helper(int[] A) {
        int res = 0, max = A[0];
        for (int a : A) {
            if (a >= max) {
                max = a;
                res++;
            }
        }
        return res;
    }
}