D script to get count of threads per CPU