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