Revert "Use the 'count' attribute instead of the 'upper_bound' attribute."