foldr for countEqual
foldr for countEqual

seems more correct, although it shouldn't have anything to do
with those stack overflows since the list that's folded over is
very short

robx/puzzles,robx/puzzles