                file_count += 1;
                match_count = match_count + results.len();

                if config.count {
                    // Display only filenames
                    if printed_count < config.max {
                        writeln!(writer, "{}: \t{}", pathname, results.len())?;
                        printed_count += 1;
                    }