Fix process count check in checkDelayProgs()