let's say i have some facts like this
something(a,b,[1,2,3,4]).
something(c,b,[2,3]).
something(e,b,[1,3]).
something(b,a,[1,2]).
something(c,a,[3,4]).
now i want to find which element is repeated mostly in list in this case
max_repeated = 3.
thank you for your time and I hope someone will help me