use rev-list --count for numerically increasing commit versions for git to send to green_build

Reviewers: jing, cramer

Reviewed By: cramer

Differential Revision: https://tails.corp.dropbox.com/D56437