pub async fn count_changed_files(dir: &Path) -> Result<usize>
Count the number of changed files in the working directory.