Counties, by resolution of their respective legislative bodies, may establish a monetary penalty not to exceed five hundred dollars ($500) for each violation of a rule or regulation that the county legislative body is authorized to adopt.