import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int h[] = new int[n + 1];
        int m[] = new int[n + 1];
        
        for(int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            m[i] = 0;
        }
        
        int innCounter = 0;
        
        for(int idx = 0; idx < n; idx++){
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } 
        System.out.println(innCounter);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int h[] = new int[n + 1];
        int m[] = new int[n + 1];
        
        for(int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            m[i] = 0;
        }
        
        int innCounter = 0;
        
        for(int idx = 0; idx < n; idx++){
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } 
        System.out.println(innCounter);
        
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int h[] = new int[n + 1];
        int m[] = new int[n + 1];
        
        for(int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            m[i] = 0;
        }
        
        int innCounter = 0;
        
        for(int idx = 0; idx < n; idx++){
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } 
        System.out.println(innCounter);
        
    } main {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int h[] = new int[n + 1];
        int m[] = new int[n + 1];
        
        for(int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            m[i] = 0;
        }
        
        int innCounter = 0;
        
        for(int idx = 0; idx < n; idx++){
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } 
        System.out.println(innCounter);
        
    } 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 + 1]; h new int[n + 1] n + 1 n 1 int m[] = new int[n + 1]; m new int[n + 1] n + 1 n 1 for(int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            m[i] = 0;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h[i] = sc.nextInt();
            m[i] = 0;
        } {
            h[i] = sc.nextInt();
            m[i] = 0;
        } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc m[i] = 0 m[i] m i 0 int innCounter = 0; innCounter 0 for(int idx = 0; idx < n; idx++){
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } int idx = 0; int idx = 0; idx 0 idx < n idx n idx++ idx++ idx {
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } {
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                } int k = 0; int k = 0; k 0 k < idx k idx k++ k++ k {
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                } {
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                } if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    } h[idx] < h[k] h[idx] h idx h[k] h k {
                        m[idx]++;
                    } m[idx]++ m[idx] m idx {
                        
                    } if(m[idx] == 0){
                    innCounter++;
                } m[idx] == 0 m[idx] m idx 0 {
                    innCounter++;
                } innCounter++ innCounter System.out.println(innCounter) System.out.println System.out System System.out innCounter String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int h[] = new int[n + 1];
        int m[] = new int[n + 1];
        
        for(int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            m[i] = 0;
        }
        
        int innCounter = 0;
        
        for(int idx = 0; idx < n; idx++){
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } 
        System.out.println(innCounter);
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int h[] = new int[n + 1];
        int m[] = new int[n + 1];
        
        for(int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            m[i] = 0;
        }
        
        int innCounter = 0;
        
        for(int idx = 0; idx < n; idx++){
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } 
        System.out.println(innCounter);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int h[] = new int[n + 1];
        int m[] = new int[n + 1];
        
        for(int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            m[i] = 0;
        }
        
        int innCounter = 0;
        
        for(int idx = 0; idx < n; idx++){
                for(int k = 0; k < idx; k++){
                    if(h[idx] < h[k]){
                        m[idx]++;
                    }else{
                        
                    }
                }
                if(m[idx] == 0){
                    innCounter++;
                }
        } 
        System.out.println(innCounter);
        
    }
}
