Move capture limit code to inside of capture loop, and only count unfiltered packets as valid