#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long inf = 11451419198109130;
struct edge {
  long long to;
  long long to2;
  long long cost;
};
long long h[25];
signed main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> h[i];
  long long cnt = 0;
  for (long long i = 0; i < n; i++) {
    long long flg = 0;
    for (long long j = 0; j <= i; j++) {
      if (h[0] <= h[j]) {
        flg++;
      }
    }
    if (flg == i + 1) cnt++;
  }
  cout << cnt << endl;
}
