pub fn rev_count(repo_path: &Path) -> Result<i64, String>
Count the number of commits reachable from HEAD (equivalent to git rev-list --count HEAD).
git rev-list --count HEAD