view v freq col   =>   view
v   input view
col   column name

Freq returns a view with all duplicates removed and a new column col appended containing the count in the original view v.

Example:
set v [view A def {a b a b b c}]

view $v freq N
AN
0a2
1b3
2c1

(freq is defined in Ratcl)