Added an adapter for Counting Tree