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