dot-CheckSize function

Check tree size