created a new treeFile to count number of bips and sets apropri