#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c;
  cin >> n >> c;
  int sum = 1;
  vector<int> arr;
  int e;
  for (int i = 0; i < n; i++) {
    cin >> e;
    arr.push_back(e);
  }
  for (int i = 1; i < n; i++) {
    if (arr[i] - arr[i - 1] <= c)
      sum++;
    else
      sum = 1;
  }
  cout << sum << endl;
  return 0;
}
