#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> heights(N);
  for (int i = 0; i < N; i++) {
    cin >> heights[i];
  }
  int res = 1;
  for (size_t i = 0; i < heights.size() - 1; i++) {
    if (heights[i + 1] >= heights[i]) res += 1;
  }
  cout << res << '\n';
  return 0;
}
