Question: How to count elements?

Assuming that I have the following row1 = a, b, c row2 = a, b, c row3 = b, c , a I would like to obtain for each column the frequencies: column1 a: 2, b: 1, c:0 column2 a:0, b:2, c: 1 column3 a:1, b:0, c:2 How could I do it with maple? Do I need to use some package? Thanks in advance, Jean
Please Wait...