Updated filter system to get the total number of threats