When counting by column, we can use DISTINCT to avoid counting duplicates.

Make sure to type DISTINCT.