Returns the count of unique values.
Example - Count the Number of Industries
Use unique() to count the number of different industries that you have opportunities with.
q = load "DTC_Opportunity_SAMPLE";
q = group q by all;
q = foreach q generate unique('Industry') as 'unique_Industry';