topoFreq function

Frequency of topologies in a tree sample