print number of threads as well