Counties work together on homeland security