Replaced CountIndex.EntryCount() with CountIndex.ValueCount().