minor updated to get the number of filtered points