SELECT COUNT(DISTINCT fieldName) FROM $Table_name$;  /* you can add WHERE condition */