The corporate authorities of each municipality may regulate and prohibit the running at large of horses, asses, mules, cattle, swine, sheep, goats, geese, and dogs, and may impose a tax on dogs.