Added method to get total number of thread.