#include <bits/stdc++.h>
using namespace std;
int N, C;
int A[100010];
int main() {
  scanf("%d %d", &N, &C);
  A[0] = -1e9 - 50653;
  for (int i = 1; i <= N; i++) {
    scanf("%d", &A[i]);
  }
  for (int i = N; i; i--) {
    if (A[i] - A[i - 1] > C) {
      printf("%d\n", N + 1 - i);
      return 0;
    }
  }
}
