fleshed out counttree