#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ans = 0;
  int tmp;
  vector<int> d(n);
  for (int i = 0; i < n; i++) {
    cin >> d.at(i);
    tmp = 0;
    for (int j = 0; j < i - 1; j++) {
      if (d.at(i) < d.at(j)) {
        tmp++;
      }
      if (tmp == 0) {
        ans++;
      }
    }
  }
  cout << ans << endl;
}
