#include <bits/stdc++.h>
using namespace std;
int start_up() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  return 0;
}
int main() {
  int n, c, ans = 1;
  cin >> n >> c;
  int arr[n];
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  for (int j = 1; j < n; ++j) {
    if (arr[j] - arr[j - 1] <= c) {
      ans++;
    } else {
      ans = 1;
    }
  }
  cout << ans;
  return 0;
}
