#include <bits/stdc++.h>
using namespace std;
long long int n, c, t[100000], k = 1, i;
int main() {
  for (cin >> n >> c, i = 0; i < n; i++) cin >> t[i];
  for (i = 1; i < n; i++) {
    (t[i] - t[i - 1] <= c) ? k++ : k = 1;
  }
  cout << k;
}
