Speed up counting added/deleted files.