Get the total number of commits for a repo and a specific revision by shelling out to git.