#include <bits/stdc++.h>
using namespace std;
struct Edge {
  int from, to, dist;
  Edge(int u, int v, int d) : from(u), to(v), dist(d) {}
};
int n, a[30];
int ans = 1;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 2; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (j == n) {
        ans++;
      }
      if (a[i] >= a[j])
        continue;
      else
        break;
    }
  }
  cout << ans << endl;
  return 0;
}
