filter count working but slow
speeding up found a little bit