import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] h = new int[N];
        h[0] = Integer.parseInt(sc.next());
        int max = h[0];
        int count = 1;
        for(int i= 1; i < N; i++) {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        }
        System.out.println(count);
        
        
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] h = new int[N];
        h[0] = Integer.parseInt(sc.next());
        int max = h[0];
        int count = 1;
        for(int i= 1; i < N; i++) {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        }
        System.out.println(count);
        
        
        
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] h = new int[N];
        h[0] = Integer.parseInt(sc.next());
        int max = h[0];
        int count = 1;
        for(int i= 1; i < N; i++) {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        }
        System.out.println(count);
        
        
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] h = new int[N];
        h[0] = Integer.parseInt(sc.next());
        int max = h[0];
        int count = 1;
        for(int i= 1; i < N; i++) {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        }
        System.out.println(count);
        
        
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] h = new int[N]; h new int[N] N h[0] = Integer.parseInt(sc.next()) h[0] h 0 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int max = h[0]; max h[0] h 0 int count = 1; count 1 for(int i= 1; i < N; i++) {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        } int i= 1; int i= 1; i 1 i < N i N i++ i++ i {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        } {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        } h[i] = Integer.parseInt(sc.next()) h[i] h i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(h[i] >= max) {
                count++;
                max = h[i];
            } h[i] >= max h[i] h i max {
                count++;
                max = h[i];
            } count++ count max = h[i] max h[i] h i 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);
        int N = Integer.parseInt(sc.next());
        int[] h = new int[N];
        h[0] = Integer.parseInt(sc.next());
        int max = h[0];
        int count = 1;
        for(int i= 1; i < N; i++) {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        }
        System.out.println(count);
        
        
        
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] h = new int[N];
        h[0] = Integer.parseInt(sc.next());
        int max = h[0];
        int count = 1;
        for(int i= 1; i < N; i++) {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        }
        System.out.println(count);
        
        
        
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] h = new int[N];
        h[0] = Integer.parseInt(sc.next());
        int max = h[0];
        int count = 1;
        for(int i= 1; i < N; i++) {
            h[i] = Integer.parseInt(sc.next());
            if(h[i] >= max) {
                count++;
                max = h[i];
            }
        }
        System.out.println(count);
        
        
        
    }
}