N, K = gets.split.map(&:to_i) X = gets.split.map(&:to_i) ans = 0 prev = -10**18 X.each do |x| if x - prev >= K ans += 1 prev = x end end puts ans