fixes the last test in an elementary manner
fixes the last test in an elementary manner

sets the count threshold to 2, maybe ceil is better than default int rounding
avoids the counter not hashable error using map and reduce

Jan-Ko/basketanalysis