pub fn count_dir_files(path: &Path) -> Result<usize>
Count the number of files in a directory and its subdirectories.