The county in which the crime occurs is, without regard to the conduct of the officers, liable in damages of not less than $2000 to the legal representative of the person lynched; the county is authorized, however, to recover this amount from the persons engaged in the lynching.