import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(input.readLine());
        int count = 1;
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int max = Integer.parseInt(tokenizer.nextToken());
        int value;
        for (int i = 1; i < n; i++) {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        }
        System.out.println(count);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(input.readLine());
        int count = 1;
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int max = Integer.parseInt(tokenizer.nextToken());
        int value;
        for (int i = 1; i < n; i++) {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(input.readLine());
        int count = 1;
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int max = Integer.parseInt(tokenizer.nextToken());
        int value;
        for (int i = 1; i < n; i++) {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        }
        System.out.println(count);
    } main {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(input.readLine());
        int count = 1;
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int max = Integer.parseInt(tokenizer.nextToken());
        int value;
        for (int i = 1; i < n; i++) {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        }
        System.out.println(count);
    } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(input.readLine()); n Integer.parseInt(input.readLine()) Integer.parseInt Integer input.readLine() input.readLine input int count = 1; count 1 StringTokenizer tokenizer = new StringTokenizer(input.readLine()); tokenizer new StringTokenizer(input.readLine()) int max = Integer.parseInt(tokenizer.nextToken()); max Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer int value; value for (int i = 1; i < n; i++) {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        } {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        } value = Integer.parseInt(tokenizer.nextToken()) value Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer if (value >= max)
                count++; value >= max value max count++ count max = Math.max(max, value) max Math.max(max, value) Math.max Math max value 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) throws IOException {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(input.readLine());
        int count = 1;
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int max = Integer.parseInt(tokenizer.nextToken());
        int value;
        for (int i = 1; i < n; i++) {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        }
        System.out.println(count);
    }
} public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(input.readLine());
        int count = 1;
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int max = Integer.parseInt(tokenizer.nextToken());
        int value;
        for (int i = 1; i < n; i++) {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        }
        System.out.println(count);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(input.readLine());
        int count = 1;
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int max = Integer.parseInt(tokenizer.nextToken());
        int value;
        for (int i = 1; i < n; i++) {
            value = Integer.parseInt(tokenizer.nextToken());
            if (value >= max)
                count++;

            max = Math.max(max, value);
        }
        System.out.println(count);
    }
}
