#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int h[20] = {0};
  int ans = 1;
  for (int i = 0; i < N; i++) {
    cin >> h[i];
    if (i > 0 && h[i] >= h[i - 1]) ans++;
  }
  cout << ans << endl;
}
