#include <bits/stdc++.h>
using namespace std;
std::vector<int> v;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, c;
  cin >> n >> c;
  int ar[n];
  for (int i = 0; i < n; i++) {
    cin >> ar[i];
  }
  int cnt = 1;
  for (int i = 1; i < n; i++) {
    if (ar[i] - ar[i - 1] > c) {
      cnt = 1;
    } else
      cnt++;
  }
  cout << cnt << endl;
  return 0;
}
