Use git rev-list --count to get the revision number. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>