v input view col input column
Counts returns a list with counts of column col in v, which must contain subviews.
set v [view {A B} def {1 a 2 b 2 c 2 d 3 e 3 f}] view $v group A G | counts G 1 3 2
1 3 2