Tree stats

Fixed ancestor count