Adds category counts to catalog filter and optimizes performance of faceted search