Add tree counting example for ase classes