My release code uses `git rev-list --count $tag` to output the release number.