Hi!

What would be the most effective way to do the following:

Given a certain data input (two lists with one number each) I need to create this table below.

Logic is simple, every time a certain number appears, it adds +1 to the respective column

Is it better with matrices, or with data trees?

Thanks in advance!