#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, time, a, b, s = 1;
  cin >> n >> time >> a;
  n--;
  while (n--) {
    cin >> b;
    if (b - a <= time) {
      a = b;
      s++;
    } else {
      s = 1;
      a = b;
    }
  }
  cout << s << endl;
}
int main() {
  solve();
  return 0;
}
