#include <bits/stdc++.h>
using namespace std;
int ans;
int n, c;
int current, i, previous;
int main() {
  while (cin >> n >> c) {
    ans = 0;
    previous = 0;
    for (i = 0; i < n; i++) {
      scanf("%d", &current);
      if (current - previous <= c) {
        ans++;
      } else {
        ans = 1;
      }
      previous = current;
    }
    cout << ans << endl;
  }
  return 0;
}
