// https://yukicoder.me/problems/no/2757 fun main() { var (n, K) = readln().split(" ").map { it.toInt() } var x = readln().split(" ").map { it.toInt() } var ans = 1 var i = 0 var j = 1 while (j < n){ if ( (x[j] - x[i]) >= K ) { ans = ans + 1 i = j } j = j+1 } println (ans) }