Adding a counter for the filter values.