added thread counting option to tsh