print number of threads