PCMTreeNumParts function

Number of unique parts on a tree