import java.util.*;

public class Main {


//    public static int gcd(int x, int y){
//        if (y==0) return x;
//        return gcd(y, x%y);
//    }

    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();
        }

        int origin_count = 1;

        for (int j=1; j<n; j++) {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        }
            System.out.println(origin_count);

    }
}

 import java.util.*; util.* java public class Main {


//    public static int gcd(int x, int y){
//        if (y==0) return x;
//        return gcd(y, x%y);
//    }

    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();
        }

        int origin_count = 1;

        for (int j=1; j<n; j++) {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        }
            System.out.println(origin_count);

    }
} 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();
        }

        int origin_count = 1;

        for (int j=1; j<n; j++) {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        }
            System.out.println(origin_count);

    } 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();
        }

        int origin_count = 1;

        for (int j=1; j<n; j++) {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        }
            System.out.println(origin_count);

    } 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] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int origin_count = 1; origin_count 1 for (int j=1; j<n; j++) {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        } int j=1; int j=1; j 1 j<n j n j++ j++ j {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        } {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        } int count = 0; count 0 for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            } int k = 0; int k = 0; k 0 k <= j k j k++ k++ k {
                if (h[k] > h[j]) {
                    count++;
                }
            } {
                if (h[k] > h[j]) {
                    count++;
                }
            } if (h[k] > h[j]) {
                    count++;
                } h[k] > h[j] h[k] h k h[j] h j {
                    count++;
                } count++ count if (count==0) {
                origin_count++;
            } count==0 count 0 {
                origin_count++;
            } origin_count++ origin_count System.out.println(origin_count) System.out.println System.out System System.out origin_count String args[] args public class Main {


//    public static int gcd(int x, int y){
//        if (y==0) return x;
//        return gcd(y, x%y);
//    }

    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();
        }

        int origin_count = 1;

        for (int j=1; j<n; j++) {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        }
            System.out.println(origin_count);

    }
} public class Main {


//    public static int gcd(int x, int y){
//        if (y==0) return x;
//        return gcd(y, x%y);
//    }

    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();
        }

        int origin_count = 1;

        for (int j=1; j<n; j++) {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        }
            System.out.println(origin_count);

    }
} Main
import java.util.*;

public class Main {


//    public static int gcd(int x, int y){
//        if (y==0) return x;
//        return gcd(y, x%y);
//    }

    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();
        }

        int origin_count = 1;

        for (int j=1; j<n; j++) {
            int count = 0;

            for (int k = 0; k <= j; k++) {
                if (h[k] > h[j]) {
                    count++;
                }
            }
            if (count==0) {
                origin_count++;
            }
        }
            System.out.println(origin_count);

    }
}


