Rename 'Value<T>' to 'Counted<T>' and other minor cleanup.

This follows a review by Allen Wallis.