#include <bits/stdc++.h>
const int INF = 1e8;
const long long MOD = 1e9 + 7;
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  cin >> t;
  vector<int> v;
  int aux;
  int ans = 0;
  for (int i = 0; i < t; i++) {
    cin >> aux;
    bool y = 1;
    for (int j = 0; j < v.size(); j++)
      if (v[i] > aux) y = 0;
    v.push_back(aux);
    if (y) ans++;
  }
  cout << ans;
  cout << "\n";
  return 0;
}
