How to create a formula for ranking Top 3 positions - Google Search Console

Help write a formula in Looker Studio to determine the number of keywords that contribute to the Top-3 position in Google Search Console. If you use these options fo, the smell is not saved and the inscription ​Aggregated and non is visible. Kindly tell me what the correct option is.

COUNT_DISTINCT(CASE WHEN Average Position <= 3 THEN Query ELSE NULL END)

COUNT(CASE WHEN Average Position <= 3 THEN Query END)