We’re migrating to using Cake build scripts for our CI pipeline and in our build process we identify builds with the commit count using the output from command `git rev-list --all –count`. 

Is there a native way for this in Cake without shelling out to the git command line?