#include <bits/stdc++.h>
using namespace std;
int GCD(const int& a, const int& b) {
  const int& _a = max(a, b);
  const int& _b = min(a, b);
  if (_a % _b == 0) {
    return _b;
  } else {
    return GCD(_b, _a % _b);
  }
}
int LCM(const int& a, const int& b) {
  const int& _a = max(a, b);
  const int& _b = min(a, b);
  return (_a * _b) / (GCD(_a, _b));
}
int main() {
  int n;
  cin >> n;
  vector<int> h(n);
  for (int i = 0; i < n; i++) {
    cin >> h[i];
  }
  int ans = 0;
  for (int i = 0; i < h.size(); i++) {
    bool can_view = true;
    for (int j = 0; j < i; j++) {
      cout << i << ',' << j << endl;
      if (h[j] > h[i]) {
        can_view = false;
        break;
      }
    }
    if (can_view) {
      ans++;
    }
  }
  cout << ans << endl;
  return 0;
}
