#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int count = 0;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = n - 1; i > -1; i--) {
    for (int j = i - 1; j > -1; j--) {
      if (a[i] < a[j]) break;
      if (j == 0) count++;
    }
  }
  cout << count << endl;
}
