Fix job success determination.

Number of commands was getting zeroed, and never getting incremented during the run.