import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int counter = scanner.nextInt();
        final int[] mountains = new int[counter];

        for (int i = 0; i < counter; i++) {
            mountains[i] = scanner.nextInt();
        }

        int res = 1;
        for (int i = 1; i < counter; i++) {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        }
        System.out.println(res);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int counter = scanner.nextInt();
        final int[] mountains = new int[counter];

        for (int i = 0; i < counter; i++) {
            mountains[i] = scanner.nextInt();
        }

        int res = 1;
        for (int i = 1; i < counter; i++) {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        }
        System.out.println(res);
    }
} Main public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int counter = scanner.nextInt();
        final int[] mountains = new int[counter];

        for (int i = 0; i < counter; i++) {
            mountains[i] = scanner.nextInt();
        }

        int res = 1;
        for (int i = 1; i < counter; i++) {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        }
        System.out.println(res);
    } main {
        final Scanner scanner = new Scanner(System.in);
        final int counter = scanner.nextInt();
        final int[] mountains = new int[counter];

        for (int i = 0; i < counter; i++) {
            mountains[i] = scanner.nextInt();
        }

        int res = 1;
        for (int i = 1; i < counter; i++) {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        }
        System.out.println(res);
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int counter = scanner.nextInt(); counter scanner.nextInt() scanner.nextInt scanner final int[] mountains = new int[counter]; mountains new int[counter] counter for (int i = 0; i < counter; i++) {
            mountains[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < counter i counter i++ i++ i {
            mountains[i] = scanner.nextInt();
        } {
            mountains[i] = scanner.nextInt();
        } mountains[i] = scanner.nextInt() mountains[i] mountains i scanner.nextInt() scanner.nextInt scanner int res = 1; res 1 for (int i = 1; i < counter; i++) {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        } int i = 1; int i = 1; i 1 i < counter i counter i++ i++ i {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        } {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        } boolean ok = true; ok true for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            } int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            } {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            } if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                } mountains[i] < mountains[j] mountains[i] mountains i mountains[j] mountains j {
                    ok = false;
                    break;
                } ok = false ok false break; if (ok) {
                res++;
            } ok {
                res++;
            } res++ res System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int counter = scanner.nextInt();
        final int[] mountains = new int[counter];

        for (int i = 0; i < counter; i++) {
            mountains[i] = scanner.nextInt();
        }

        int res = 1;
        for (int i = 1; i < counter; i++) {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        }
        System.out.println(res);
    }
} public class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int counter = scanner.nextInt();
        final int[] mountains = new int[counter];

        for (int i = 0; i < counter; i++) {
            mountains[i] = scanner.nextInt();
        }

        int res = 1;
        for (int i = 1; i < counter; i++) {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        }
        System.out.println(res);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int counter = scanner.nextInt();
        final int[] mountains = new int[counter];

        for (int i = 0; i < counter; i++) {
            mountains[i] = scanner.nextInt();
        }

        int res = 1;
        for (int i = 1; i < counter; i++) {
            boolean ok = true;
            for (int j = 0; j < i; j++) {
                if (mountains[i] < mountains[j]) {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                res++;
            }
        }
        System.out.println(res);
    }
}
