import java.io.*;
import java.util.*;
import static java.lang.System.in;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int n = sc.nextInt(), ans = 0;
        int maxi = -1;
        for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        }
        System.out.println(ans);
    }
} import java.io.*; io.* java import java.util.*; util.* java import static java.lang.System.in; import static java.lang.System.in; import static java.lang.System.in; public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int n = sc.nextInt(), ans = 0;
        int maxi = -1;
        for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        }
        System.out.println(ans);
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) public static void main(String[] args){
        int n = sc.nextInt(), ans = 0;
        int maxi = -1;
        for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        }
        System.out.println(ans);
    } main {
        int n = sc.nextInt(), ans = 0;
        int maxi = -1;
        for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        }
        System.out.println(ans);
    } int n = sc.nextInt() n sc.nextInt() sc.nextInt sc ans = 0; ans 0 int maxi = -1; maxi -1 1 for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        } {
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        } int cur = sc.nextInt(); cur sc.nextInt() sc.nextInt sc maxi = Math.max(maxi,cur) maxi Math.max(maxi,cur) Math.max Math maxi cur if(cur==maxi) ans++; cur==maxi cur maxi ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int n = sc.nextInt(), ans = 0;
        int maxi = -1;
        for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        }
        System.out.println(ans);
    }
} public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int n = sc.nextInt(), ans = 0;
        int maxi = -1;
        for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        }
        System.out.println(ans);
    }
} Main
import java.io.*;
import java.util.*;
import static java.lang.System.in;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int n = sc.nextInt(), ans = 0;
        int maxi = -1;
        for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            maxi = Math.max(maxi,cur);
            if(cur==maxi) ans++;
        }
        System.out.println(ans);
    }
}