fixed count-threshold functionality.