#include <bits/stdc++.h>
using namespace std;
struct debugger {
  template <typename T>
  debugger &operator,(const T &v) {
    cerr << v << " ";
    return *this;
  }
} dbg;
const int SIZE = 10E5;
const double eps = 1e-9;
const int inf = (int)10e9;
const long long INF = (long long)10e18;
const double PI = 2 * acos(0.0);
int dx[] = {+1, -1, 0, 0};
int dy[] = {0, 0, +1, -1};
int hx[] = {+1, -1, -1, +1, -2, -2, +2, +2};
int hy[] = {+2, +2, -2, -2, +1, -1, +1, -1};
int fx[] = {+0, +0, +1, -1, -1, +1, -1, +1};
int fy[] = {-1, +1, +0, +0, +1, +1, -1, -1};
int month[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
template <typename T>
inline T GCD(T a, T b) {
  a = ((a) < 0 ? -(a) : (a)), b = ((b) < 0 ? -(b) : (b));
  return !b ? a : GCD(b, a % b);
}
template <typename T>
inline T LCM(T x, T y) {
  T g = GCD(x, y);
  return x * (y / g);
}
template <typename T>
inline T power(T b, T p) {
  T res = 1, x = b;
  while (p) {
    if (p & 1) res = (res * x);
    x = (x * x);
    p >>= 1;
  }
  return res;
}
template <typename T>
inline T bigmod(T b, T p, T m) {
  T res = 1 % m, x = b % m;
  while (p) {
    if (p & 1) res = (res * x) % m;
    x = (x * x) % m;
    p >>= 1;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n + 1];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int c = 1;
  for (int i = 1; i < n; i++) {
    if (a[i] >= a[i - 1] && a[i] >= a[0]) {
      c++;
    }
  }
  cout << c << endl;
  return 0;
}
