#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
using pl = pair<ll, ll>;
const ll MOD = 1000000007;
const ll MOD9 = 998244353;
const int inf = 1e9;
const ll INF = 4e18;
const ll dy[4] = {1, 0, -1, 0};
const ll dx[4] = {0, -1, 0, 1};
int main() {
  int N;
  cin >> N;
  vector<int> vec(N);
  for (ll i = 0; i < N; i++) {
    cin >> vec.at(i);
  }
  int count = 1;
  int counting = 0;
  for (ll i = (1); i < (N); i++) {
    for (ll j = 0; j < i; j++) {
      if (vec.at(j) <= vec.at(i)) {
        counting++;
      }
      if (counting == i) {
        count++;
      }
      counting = 0;
    }
  }
  cout << count << endl;
}
