Pirates have hijacked dozens of ships over the last few years , taking in tens of millions of dollars in ransom payments from ship owners .