Class-count reduction techniques for content adaptive filtering