Rename variable

Rename the function local variable "job_count" in order to avoid
confusion with the global variable by the same name.
No change to logic.
Fix MaxJobCount for job arrays

This part handles the decrement portion of logic.
Enforce MaxJobCount with job arrays

Modify job array logic to properly support the MaxJobCount
configuration parameter with the new job array data structure.