Check the number of threads against the comparison values