finished therad count api