Output filter plugin to count messages that matches specified conditions