Counting pareto effects made generic (any amount of input parameters)