@data{$dst}{$service}++; if ($data{$dst}{$service} == 50) { do magic; }