Counties secure funding for demolition