BUG
When IDataStatistics.UniqueValueCount is called on the DataStatistics object, before IDataStatistics.UniqueValues is called, it returns a value of zero even though there may be unique values.
This is because the internal variable holding the UniqueValueCount is not populated until UniqueValues has been called.
Get help from ArcGIS experts
Download the Esri Support App