#include <bits/stdc++.h>
using namespace std;
const long long oo = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-9;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(nullptr);
  long long n, c;
  cin >> n >> c;
  vector<long long> tim(n);
  for (long long i = (0); i < (n); i++) cin >> tim[i];
  int b = 1;
  for (long long i = (1); i < (n); i++) {
    if (tim[i] - tim[i - 1] <= c) {
      b++;
    } else {
      b = 1;
    }
  }
  cout << b << endl;
}
