contrib/gcc-changelog/git_check_commit.py: Implement --num-commits