import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int b[] = new int[N];
        for (int i = 0; i < N; i++) {
            b[i] = scan.nextInt();
        }
        int count = 0;

        for (int y=0; y<N; y++){
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        }

        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int b[] = new int[N];
        for (int i = 0; i < N; i++) {
            b[i] = scan.nextInt();
        }
        int count = 0;

        for (int y=0; y<N; y++){
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int b[] = new int[N];
        for (int i = 0; i < N; i++) {
            b[i] = scan.nextInt();
        }
        int count = 0;

        for (int y=0; y<N; y++){
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        }

        System.out.println(count);
    } main {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int b[] = new int[N];
        for (int i = 0; i < N; i++) {
            b[i] = scan.nextInt();
        }
        int count = 0;

        for (int y=0; y<N; y++){
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        }

        System.out.println(count);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int b[] = new int[N]; b new int[N] N for (int i = 0; i < N; i++) {
            b[i] = scan.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            b[i] = scan.nextInt();
        } {
            b[i] = scan.nextInt();
        } b[i] = scan.nextInt() b[i] b i scan.nextInt() scan.nextInt scan int count = 0; count 0 for (int y=0; y<N; y++){
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        } int y=0; int y=0; y 0 y<N y N y++ y++ y {
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        } {
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        } int sum = 0; sum 0 for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            } int x=0; int x=0; x 0 x<y x y x++ x++ x {
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            } {
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            } if(b[y] >= b[x]){
                    sum = sum +1;
                } b[y] >= b[x] b[y] b y b[x] b x {
                    sum = sum +1;
                } sum = sum +1 sum sum +1 sum 1 if (sum == y){
                count++;
            } sum == y sum y {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int b[] = new int[N];
        for (int i = 0; i < N; i++) {
            b[i] = scan.nextInt();
        }
        int count = 0;

        for (int y=0; y<N; y++){
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        }

        System.out.println(count);
    }
} public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int b[] = new int[N];
        for (int i = 0; i < N; i++) {
            b[i] = scan.nextInt();
        }
        int count = 0;

        for (int y=0; y<N; y++){
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        }

        System.out.println(count);
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int b[] = new int[N];
        for (int i = 0; i < N; i++) {
            b[i] = scan.nextInt();
        }
        int count = 0;

        for (int y=0; y<N; y++){
            int sum = 0;

            for(int x=0;x<y;x++){
                
                if(b[y] >= b[x]){
                    sum = sum +1;
                }
            
            }
            if (sum == y){
                count++;
            }

        }

        System.out.println(count);
    }
}
