#include <bits/stdc++.h>
using namespace std;
int mx = 1e5;
int flag = 0;
int mn = 0;
int sum = 0;
int main() {
  cin.tie(NULL);
  ios_base::sync_with_stdio;
  int n, c, m;
  cin >> n >> c;
  vector<int> vec(n);
  for (int i = 0; i < n; i++) cin >> vec[i];
  int result[n];
  adjacent_difference(vec.begin(), vec.end(), result);
  vector<int> results(n);
  copy(result, result + n, results.begin());
  reverse(results.begin(), results.end());
  for (auto itr = results.begin(); itr != results.end(); itr++) {
    sum++;
    if (*itr > c) break;
  }
  cout << sum;
}
