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