Use max() for job count for sanity

Change-Id: If5979ccbede2dd70fcd26b7caae82419ddffe542
Merge "Use max() for job count for sanity"