#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> h(n);
  int ans = 1;
  for (int i = 0; i < n; ++i) cin >> h[i];
  int mn = h[0];
  for (int i = 0; i < n - 1; ++i) {
    if (h[i] <= h[i + 1] && mn <= h[i + 1]) {
      ans++;
      mn = min(mn, h[i]);
    }
  }
  cout << ans << endl;
}
