import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Scanner sc2 = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < N; i++) {
            list.add(sc.nextInt());
        }
        for (int i = 1; i < N; i++) {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Scanner sc2 = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < N; i++) {
            list.add(sc.nextInt());
        }
        for (int i = 1; i < N; i++) {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Scanner sc2 = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < N; i++) {
            list.add(sc.nextInt());
        }
        for (int i = 1; i < N; i++) {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        Scanner sc2 = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < N; i++) {
            list.add(sc.nextInt());
        }
        for (int i = 1; i < N; i++) {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Scanner sc2 = new Scanner(System.in); sc2 new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int count = 1; count 1 List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (int i = 0; i < N; i++) {
            list.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            list.add(sc.nextInt());
        } {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc for (int i = 1; i < N; i++) {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        } {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        } for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            } int j = 0; int j = 0; j 0 j < i+1 j i+1 i 1 j++ j++ j {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            } {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            } if (list.get(i) < list.get(j)) { 
                    break;
                } list.get(i) < list.get(j) list.get(i) list.get list i list.get(j) list.get list j { 
                    break;
                } break; if ( j == i-1) {
                    count++;
                } j == i-1 j i-1 i 1 {
                    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 sc = new Scanner(System.in);
        Scanner sc2 = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < N; i++) {
            list.add(sc.nextInt());
        }
        for (int i = 1; i < N; i++) {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Scanner sc2 = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < N; i++) {
            list.add(sc.nextInt());
        }
        for (int i = 1; i < N; i++) {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        }
        System.out.println(count);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Scanner sc2 = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 1;
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < N; i++) {
            list.add(sc.nextInt());
        }
        for (int i = 1; i < N; i++) {
            for (int j = 0; j < i+1; j++) {
                if (list.get(i) < list.get(j)) { 
                    break;
                }
                if ( j == i-1) {
                    count++;
                }
            }
        }
        System.out.println(count);
    }
}
