import java.util.Scanner;

public class Main {
  public static void main(String args[]) {
    final Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int count = 1;
    int maxH = scanner.nextInt();
    int H = 0;

    for (int i = 0; i < N-1; i++) {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    }
    System.out.println(count);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String args[]) {
    final Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int count = 1;
    int maxH = scanner.nextInt();
    int H = 0;

    for (int i = 0; i < N-1; i++) {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    }
    System.out.println(count);
  }
} Main public static void main(String args[]) {
    final Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int count = 1;
    int maxH = scanner.nextInt();
    int H = 0;

    for (int i = 0; i < N-1; i++) {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    }
    System.out.println(count);
  } main {
    final Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int count = 1;
    int maxH = scanner.nextInt();
    int H = 0;

    for (int i = 0; i < N-1; i++) {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    }
    System.out.println(count);
  } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int count = 1; count 1 int maxH = scanner.nextInt(); maxH scanner.nextInt() scanner.nextInt scanner int H = 0; H 0 for (int i = 0; i < N-1; i++) {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    } int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    } {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    } H = scanner.nextInt() H scanner.nextInt() scanner.nextInt scanner if (H >= maxH) {
        count++;
        maxH = H;
      } H >= maxH H maxH {
        count++;
        maxH = H;
      } count++ count maxH = H maxH H 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[]) {
    final Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int count = 1;
    int maxH = scanner.nextInt();
    int H = 0;

    for (int i = 0; i < N-1; i++) {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    }
    System.out.println(count);
  }
} public class Main {
  public static void main(String args[]) {
    final Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int count = 1;
    int maxH = scanner.nextInt();
    int H = 0;

    for (int i = 0; i < N-1; i++) {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    }
    System.out.println(count);
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String args[]) {
    final Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int count = 1;
    int maxH = scanner.nextInt();
    int H = 0;

    for (int i = 0; i < N-1; i++) {
      H = scanner.nextInt();
      if (H >= maxH) {
        count++;
        maxH = H;
      }
    }
    System.out.println(count);
  }
}