leafCount in the base class
abstract class Tree
{
public abstract int leafCount();
}