Added the ability for a thread to know the total amount of sub-threads
it contains.