rbtree add count method.