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