EY interview question

Sql query to count the distinct elements