add count in tree