import java.util.Scanner;

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

    while (in.hasNext()) {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    }
  }
} Main public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    }
  } main {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) while (in.hasNext()) {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    } in.hasNext() in.hasNext in {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    } int N = in.nextInt(); N in.nextInt() in.nextInt in int currMax = 0; currMax 0 int view = 0; view 0 for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      } int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      } {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      } int Hi = in.nextInt(); Hi in.nextInt() in.nextInt in if (Hi >= currMax) {
           ++view;
        } Hi >= currMax Hi currMax {
           ++view;
        } ++view view currMax = Math.max(currMax, Hi) currMax Math.max(currMax, Hi) Math.max Math currMax Hi System.out.println(view) System.out.println System.out System System.out view String[] args args public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    }
  }
} public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    }
  }
} Main
import java.util.Scanner;

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

    while (in.hasNext()) {
      int N = in.nextInt();
      int currMax = 0;
      int view = 0;

      for (int i = 0; i < N; ++i) {
        int Hi = in.nextInt();

        if (Hi >= currMax) {
           ++view;
        }

        currMax = Math.max(currMax, Hi);
      }
 
      System.out.println(view);
    }
  }
}