A General-Purpose Counting Filter: Making Every Bit Count