Extracts the number of trees of treetype stored in ROOT file rootfile.
Valid tree types are listed in validTreetype. For treetype="*" the total number of trees in rootfile
are returned.
If setname is provided, only trees in subdirectory setname are counted.