import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = Integer.parseInt(in.nextLine());
        int[] h = new int[num];
		for (int i = 0; i < num; i++) {
            h[i] = in.nextInt();
        }
		in.close();
      
        int max = h[0];
		int count = 1;
		for(int i = 1; i < num; i++) {
			if (max < h[i]) {
                max = h[i];
                count++;
            } else if (max == h[i]) {
                count++;
            }
		}
        System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = Integer.parseInt(in.nextLine());
        int[] h = new int[num];
		for (int i = 0; i < num; i++) {
            h[i] = in.nextInt();
        }
		in.close();
      
        int max = h[0];
		int count = 1;
		for(int i = 1; i < num; i++) {
			if (max < h[i]) {
                max = h[i];
                count++;
            } else if (max == h[i]) {
                count++;
            }
		}
        System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = Integer.parseInt(in.nextLine());
        int[] h = new int[num];
		for (int i = 0; i < num; i++) {
            h[i] = in.nextInt();
        }
		in.close();
      
        int max = h[0];
		int count = 1;
		for(int i = 1; i < num; i++) {
			if (max < h[i]) {
                max = h[i];
                count++;
            } else if (max == h[i]) {
                count++;
            }
		}
        System.out.println(count);
	}
}
