import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int n = Integer.parseInt(s.next());

        int[] h = new int[n];

        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(s.next());
        }

        int tmp = 0;
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        }
        System.out.println(c);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int n = Integer.parseInt(s.next());

        int[] h = new int[n];

        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(s.next());
        }

        int tmp = 0;
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        }
        System.out.println(c);
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int n = Integer.parseInt(s.next());

        int[] h = new int[n];

        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(s.next());
        }

        int tmp = 0;
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        }
        System.out.println(c);
    } main {
        Scanner s = new Scanner(System.in);

        int n = Integer.parseInt(s.next());

        int[] h = new int[n];

        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(s.next());
        }

        int tmp = 0;
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        }
        System.out.println(c);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = Integer.parseInt(s.next()); n Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s int[] h = new int[n]; h new int[n] n for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(s.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h[i] = Integer.parseInt(s.next());
        } {
            h[i] = Integer.parseInt(s.next());
        } h[i] = Integer.parseInt(s.next()) h[i] h i Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s int tmp = 0; tmp 0 int c = 0; c 0 for (int i = 0; i < n; i++) {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        } {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        } if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            } tmp <= h[i] tmp h[i] h i {
                c++;
                tmp = h[i];
            } c++ c tmp = h[i] tmp h[i] h i System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int n = Integer.parseInt(s.next());

        int[] h = new int[n];

        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(s.next());
        }

        int tmp = 0;
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        }
        System.out.println(c);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int n = Integer.parseInt(s.next());

        int[] h = new int[n];

        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(s.next());
        }

        int tmp = 0;
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        }
        System.out.println(c);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int n = Integer.parseInt(s.next());

        int[] h = new int[n];

        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(s.next());
        }

        int tmp = 0;
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (tmp <= h[i]) {
                c++;
                tmp = h[i];
            }
        }
        System.out.println(c);
    }
}