public static int Count <T>(this IComposite <T> composite) { var total = 0; composite.Each(t => total++, TreeTraversalStrategy.PostOrderDepthFirst); // strategy doesn't matter return(total); }