Using this script you can print all category in a magento store with all the child in tree structure.
First bracket () shows ID, while second shows count.
Attributes used in script are- Count of product in particular category ID of the particular category URL of the category
You can hard code category ID, in case you are looking to print a partcular tree.