#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, c, sum = 1, i;
  cin >> n >> c;
  long long a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (i != 0 && a[i] - a[i - 1] <= c) {
      sum++;
    } else
      sum = 1;
  }
  cout << sum << endl;
  return 0;
}
