import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = Integer.parseInt(scan.next());
        ArrayList<Integer> list = new ArrayList<>();
        int count = 0;
        boolean tall = false;
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(scan.next()));
        }
        for (int i = 1; i < a; i++) {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        }
        count += 1;
        PrintWriter out = new PrintWriter(System.out);
        out.println(count);
        out.flush();
        scan.close();
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = Integer.parseInt(scan.next());
        ArrayList<Integer> list = new ArrayList<>();
        int count = 0;
        boolean tall = false;
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(scan.next()));
        }
        for (int i = 1; i < a; i++) {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        }
        count += 1;
        PrintWriter out = new PrintWriter(System.out);
        out.println(count);
        out.flush();
        scan.close();
    }
} Main public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = Integer.parseInt(scan.next());
        ArrayList<Integer> list = new ArrayList<>();
        int count = 0;
        boolean tall = false;
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(scan.next()));
        }
        for (int i = 1; i < a; i++) {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        }
        count += 1;
        PrintWriter out = new PrintWriter(System.out);
        out.println(count);
        out.flush();
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);

        int a = Integer.parseInt(scan.next());
        ArrayList<Integer> list = new ArrayList<>();
        int count = 0;
        boolean tall = false;
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(scan.next()));
        }
        for (int i = 1; i < a; i++) {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        }
        count += 1;
        PrintWriter out = new PrintWriter(System.out);
        out.println(count);
        out.flush();
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = Integer.parseInt(scan.next()); a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() int count = 0; count 0 boolean tall = false; tall false for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(scan.next()));
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            list.add(Integer.parseInt(scan.next()));
        } {
            list.add(Integer.parseInt(scan.next()));
        } list.add(Integer.parseInt(scan.next())) list.add list Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan for (int i = 1; i < a; i++) {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        } int i = 1; int i = 1; i 1 i < a i a i++ i++ i {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        } {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        } for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            } int h = 0; int h = 0; h 0 h<i h i h++ h++ h {
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            } {
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            } if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                } list.get(i)>=list.get(h) list.get(i) list.get list i list.get(h) list.get list h {
                    tall = true;
                } tall = true tall true {
                    tall = false;
                } tall = false tall false if(!tall){
                    break;
                } !tall tall {
                    break;
                } break; if(tall){
                count += 1;
            } tall {
                count += 1;
            } count += 1 count 1 count += 1 count 1 PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) out.println(count) out.println out count out.flush() out.flush out scan.close() scan.close scan String args[] args public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = Integer.parseInt(scan.next());
        ArrayList<Integer> list = new ArrayList<>();
        int count = 0;
        boolean tall = false;
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(scan.next()));
        }
        for (int i = 1; i < a; i++) {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        }
        count += 1;
        PrintWriter out = new PrintWriter(System.out);
        out.println(count);
        out.flush();
        scan.close();
    }
} public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = Integer.parseInt(scan.next());
        ArrayList<Integer> list = new ArrayList<>();
        int count = 0;
        boolean tall = false;
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(scan.next()));
        }
        for (int i = 1; i < a; i++) {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        }
        count += 1;
        PrintWriter out = new PrintWriter(System.out);
        out.println(count);
        out.flush();
        scan.close();
    }
} Main
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = Integer.parseInt(scan.next());
        ArrayList<Integer> list = new ArrayList<>();
        int count = 0;
        boolean tall = false;
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(scan.next()));
        }
        for (int i = 1; i < a; i++) {
            for(int h = 0;h<i;h++){
                if(list.get(i)>=list.get(h)){
                    tall = true;
                }else{
                    tall = false;
                }
                if(!tall){
                    break;
                }
            }
            if(tall){
                count += 1;
            }
        }
        count += 1;
        PrintWriter out = new PrintWriter(System.out);
        out.println(count);
        out.flush();
        scan.close();
    }
}