Postgres contam distintos

SELECT 
   COUNT(DISTINCT column) 
FROM 
   table_name
WHERE
   condition;
Graceful Goose