Use bad ticket count for exit code
Use bad ticket count for exit code

Otherwise, if there are zero good tickets, the script will report
successful execution. It also makes intuitive sense that the more bad
tickets there are, the higher the return code is.

This used to be revision r5047.

biovoxxel/imagej,TehSAUCE/imagej,TehSAUCE/imagej,TehSAUCE/imagej,biovoxxel/imagej,biovoxxel/imagej