#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const int INF = 1e9;
int dx4[4] = {0, -1, 1, 0};
int dy4[4] = {-1, 0, 0, 1};
int dx8[8] = {0, -1, 1, 0, -1, 1, -1, 1};
int dy8[8] = {-1, 0, 0, 1, -1, -1, 1, 1};
int main() {
  int n;
  cin >> n;
  vector<int> h(n);
  for (int i = 0; i < n; ++i) cin >> h[i];
  int res = 1;
  for (int i = 1; i < n; ++i) {
    if (h[i] < h[0])
      continue;
    else if (h[i] > h[i - 1])
      ++res;
  }
  cout << res << endl;
  return 0;
}
