import java.util.*;

public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        int[] list = new int[n];

        int ans = 0;
        for (int i = 0 ; i < n; i ++) {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        }
        // 出力
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        int[] list = new int[n];

        int ans = 0;
        for (int i = 0 ; i < n; i ++) {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        }
        // 出力
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        int[] list = new int[n];

        int ans = 0;
        for (int i = 0 ; i < n; i ++) {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        }
        // 出力
        System.out.println(ans);
    } main {
	    // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        int[] list = new int[n];

        int ans = 0;
        for (int i = 0 ; i < n; i ++) {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        }
        // 出力
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] list = new int[n]; list new int[n] n int ans = 0; ans 0 for (int i = 0 ; i < n; i ++) {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        } int i = 0 ; int i = 0 ; i 0 i < n i n i ++ i ++ i {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        } {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        } int value = sc.nextInt(); value sc.nextInt() sc.nextInt sc boolean canLookSea = true; canLookSea true for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            } int left list {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            } {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            } if (left > value) {
                    canLookSea = false;
                    break;
                } left > value left value {
                    canLookSea = false;
                    break;
                } canLookSea = false canLookSea false break; if (canLookSea) {
                ans++;
            } canLookSea {
                ans++;
            } ans++ ans list[i] = value list[i] list i value 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) {
	    // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        int[] list = new int[n];

        int ans = 0;
        for (int i = 0 ; i < n; i ++) {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        }
        // 出力
        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        int[] list = new int[n];

        int ans = 0;
        for (int i = 0 ; i < n; i ++) {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        }
        // 出力
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        int[] list = new int[n];

        int ans = 0;
        for (int i = 0 ; i < n; i ++) {
            int value = sc.nextInt();
            boolean canLookSea = true;
            for(int left : list) {
                if (left > value) {
                    canLookSea = false;
                    break;
                }
            }
            if (canLookSea) {
                ans++;
            }
            list[i] = value;
        }
        // 出力
        System.out.println(ans);
    }
}