use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let n: Vec = s.split_whitespace().skip(1).flat_map(str::parse).collect(); let k = n[0]; let mut t = n[1]; let mut a = 1; for &x in n[2..].iter() { if x - t >= k { a += 1; t = x; } } println!("{}", a); }