In pg, there is a tags field of type varchar, containing tags separated by ], e.g \'a]b]c\'.
varchar
]
\'a]b]c\'
Need to count occurrences of these