SELECT stlpec, count(stlpec) FROM tabulka GROUP BY stlpec;
count(explode(',', $sloupec))
WITH hodnoty AS ( SELECT string_to_table(csv,',') AS hodnota FROM tabulka)SELECT hodnota, count(hodnota)FROM hodnotyGROUP BY hodnota