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