#include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;
using tiii = tuple<int, int, int>;
int main() {
  int N;
  cin >> N;
  vi H(N);
  for (int i = 0; i < (N); i++) cin >> H.at(i);
  int ans = 1;
  for (int i = (1); i < (N); i++) {
    if (H.at(i - 1) <= H.at(i)) ans++;
  }
  cout << ans << endl;
}
