Fixed the filter counter