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