Add "len(treebuider)" to the API