import java.util.*;

public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.nextLine());

        String[] line = sc.nextLine().split(" ");
        
        int[] array = new int[num];

        for (int i = 0;i < num;i++){
            array[i] = Integer.parseInt(line[i]);
        }

        int ans = 1;
        boolean isCanLook = true;
        for (int i = 1;i < num; i++){
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        }


        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.nextLine());

        String[] line = sc.nextLine().split(" ");
        
        int[] array = new int[num];

        for (int i = 0;i < num;i++){
            array[i] = Integer.parseInt(line[i]);
        }

        int ans = 1;
        boolean isCanLook = true;
        for (int i = 1;i < num; i++){
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        }


        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.nextLine());

        String[] line = sc.nextLine().split(" ");
        
        int[] array = new int[num];

        for (int i = 0;i < num;i++){
            array[i] = Integer.parseInt(line[i]);
        }

        int ans = 1;
        boolean isCanLook = true;
        for (int i = 1;i < num; i++){
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        }


        System.out.println(ans);
    } main {

        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.nextLine());

        String[] line = sc.nextLine().split(" ");
        
        int[] array = new int[num];

        for (int i = 0;i < num;i++){
            array[i] = Integer.parseInt(line[i]);
        }

        int ans = 1;
        boolean isCanLook = true;
        for (int i = 1;i < num; i++){
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        }


        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = Integer.parseInt(sc.nextLine()); num Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int[] array = new int[num]; array new int[num] num for (int i = 0;i < num;i++){
            array[i] = Integer.parseInt(line[i]);
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            array[i] = Integer.parseInt(line[i]);
        } {
            array[i] = Integer.parseInt(line[i]);
        } array[i] = Integer.parseInt(line[i]) array[i] array i Integer.parseInt(line[i]) Integer.parseInt Integer line[i] line i int ans = 1; ans 1 boolean isCanLook = true; isCanLook true for (int i = 1;i < num; i++){
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        } int i = 1; int i = 1; i 1 i < num i num i++ i++ i {
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        } {
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        } for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            } int k = 0; int k = 0; k 0 k < i k i k++ k++ k {
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            } {
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            } if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                } array[k] > array[i] array[k] array k array[i] array i {
                    isCanLook = false;
                    break;
                } isCanLook = false isCanLook false break; if(isCanLook){
                ans++;
            } isCanLook {
                ans++;
            } ans++ ans isCanLook = true isCanLook true System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.nextLine());

        String[] line = sc.nextLine().split(" ");
        
        int[] array = new int[num];

        for (int i = 0;i < num;i++){
            array[i] = Integer.parseInt(line[i]);
        }

        int ans = 1;
        boolean isCanLook = true;
        for (int i = 1;i < num; i++){
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        }


        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.nextLine());

        String[] line = sc.nextLine().split(" ");
        
        int[] array = new int[num];

        for (int i = 0;i < num;i++){
            array[i] = Integer.parseInt(line[i]);
        }

        int ans = 1;
        boolean isCanLook = true;
        for (int i = 1;i < num; i++){
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        }


        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.nextLine());

        String[] line = sc.nextLine().split(" ");
        
        int[] array = new int[num];

        for (int i = 0;i < num;i++){
            array[i] = Integer.parseInt(line[i]);
        }

        int ans = 1;
        boolean isCanLook = true;
        for (int i = 1;i < num; i++){
            for (int k = 0;k < i;k++){
                if(array[k] > array[i]){
                    isCanLook = false;
                    break;
                }
            }

            if(isCanLook){
                ans++;
            }

            isCanLook = true;
        }


        System.out.println(ans);
    }
}
