#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, c, now = 0;
  cin >> n >> c;
  long long tim[n];
  for (int i = 0; i < n; i++) {
    cin >> tim[i];
    if (i > 0 && tim[i] - tim[i - 1] > c) now = 0;
    now++;
  }
  cout << now;
  return 0;
}
