#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, h[105], suma = 0, a;
  cin >> t;
  h[0] = 0;
  for (int i = 1; i <= t; i++) {
    cin >> h[i];
    if (h[1] <= h[i] && h[i - 1] < h[i]) {
      suma++;
    }
  }
  cout << suma;
  return 0;
}
