Here are the codes for Marysville, Washington.
http://www.codepublishing.com/wa/marysville/
10.04.310 Restraint and enclosure.
All persons owning or having control or possession of any rabbits, goats, swine, chickens, turkeys, geese, ducks, horses, cattle, pigeons, pheasants, peacocks, or fowl within the city shall keep the same restrained and enclosed at all times on the premises owned and occupied by such persons. (Ord. 2404 § 1, 2002; Ord. 2013 § 31, 1995).
10.04.340 Location of building Enclosures must be clean.
(1) Any building inhabited by livestock or fowl shall be located at a minimum distance of 100 feet of any adjoining residence.
(2) All houses, pens or enclosures where chickens, turkeys, geese, ducks, pigeons or other domestic fowl or rabbits are kept shall be kept clean and free from disagreeable odors. No organic materials furnishing food for flies shall be allowed to accumulate on the premises. All manure and other refuse must be kept in tightly covered fly-proof receptacles and disposed of at least once each week in a manner approved by the animal control officer. (Ord. 2404 § 1, 2002; Ord. 2013 § 34, 1995).
10.04.370 Rat- and mice-free premises.
All premises where any of the livestock or fowl mentioned in this chapter are kept shall be kept free from rats and rat and mice harborages. (Ord. 2404 § 1, 2002; Ord. 2013 § 37, 1995).
The 2nd part there isn't too strict--- there is an "offensive odor" hotline here, so if you have chickens, make sure that they aren't stinking up the place. We compost all their waste material, and keep a cover over their run, and this keeps there from being any significant odor. There is no apparent limit on the number of chickens kept, and no ordinances against roosters. Keep in mind that if you have extremely noisy birds, your neighbors might take it upon themselves to decide your chickens are stinky. I am not sure how that is all handled, but that's just what you need to be aware of!