import java.util.*;
import java.math.*;
import java.io.*;


public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int num = 0;
        int max = -1;
        for(int i = 0; i < n; i++) {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        }
        System.out.println(num);

    } 
} import java.util.*; util.* java import java.math.*; math.* java import java.io.*; io.* java public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int num = 0;
        int max = -1;
        for(int i = 0; i < n; i++) {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        }
        System.out.println(num);

    } 
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int num = 0;
        int max = -1;
        for(int i = 0; i < n; i++) {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        }
        System.out.println(num);

    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int num = 0;
        int max = -1;
        for(int i = 0; i < n; i++) {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        }
        System.out.println(num);

    } 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]; h new int[n] n for(int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h[i] = sc.nextInt();
        } {
            h[i] = sc.nextInt();
        } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int num = 0; num 0 int max = -1; max -1 1 for(int i = 0; i < n; i++) {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        } {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        } if(max <= h[i]) num++; max <= h[i] max h[i] h i num++ num max = Math.max(max,h[i]) max Math.max(max,h[i]) Math.max Math max h[i] h i System.out.println(num) System.out.println System.out System System.out num String args[] args public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int num = 0;
        int max = -1;
        for(int i = 0; i < n; i++) {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        }
        System.out.println(num);

    } 
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int num = 0;
        int max = -1;
        for(int i = 0; i < n; i++) {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        }
        System.out.println(num);

    } 
} Main
import java.util.*;
import java.math.*;
import java.io.*;


public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int num = 0;
        int max = -1;
        for(int i = 0; i < n; i++) {
            if(max <= h[i]) num++;
            max = Math.max(max,h[i]);
        }
        System.out.println(num);

    } 
}