#include <bits/stdc++.h>
using namespace std;
signed main() {
  int a, c = 1;
  int b[10000];
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> b[i];
    if (i != 0) {
      if (b[i - 1] <= b[i] && b[0] <= b[i]) c++;
    }
  }
  cout << c << "\n";
}
