pub fn emit_count(writer: &mut dyn Write, matched_count: usize) -> Result<()>
Emit only the count of matched lines.