Shells out to git and returns count of commits on this branch: git rev-list HEAD --count Options: :dir - dir to invoke this command from, default = current directory :git-command - git command to use, default = "git" :path - path to count commits for relative to dir