Alert rule when ther is more than X alert for device

Hi

Is there any way to have rule that will trigger alerts when you have x port down alerts on same device ?

Thx
Mario