Added pattern cardinalities to results.