#include <bits/stdc++.h>
using namespace std;
int h[100];
int main() {
  int n, max = 0, a = 0;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> h[i];
    if (h[i] >= max) {
      ++a;
      h[i] = max;
    }
  }
  cout << a;
}
