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