CSV 列数カウント

>gawk -F , '{c[NF]++} END{for(cc in c){print cc"->"c[cc]}}' test.txt

7->1

8->1

9->1

10->7