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
A N 0 a 2 1 b 3 2 c 1
(freq is defined in Ratcl)