Bug 878303 - Implement and use DISCRETE_COUNTED type.