RedBlackTreeBag unique count counter

Maintains a counter for unique items in the RedBlackTreeBag for O(1)
lookups.