#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, b, a, c, i;
  cin >> N;
  c = 0;
  a = 0;
  for (i = 0; i < N; i++) {
    cin >> b;
    if (b > c) {
      a++;
    }
    b = c;
  }
  cout << a << endl;
}
