(a) It shall be unlawful for any person to keep or maintain any pen, coop or enclosure for animals or fowl, or to permit any animal or fowl to be kept, maintained, or grazed within five hundred (500) feet of the nearest portion of any building that is in any way used by a person, other than a building occupied by the owner of any such animals or fowl. (b) Subsection (a) shall not apply to any of the following duly licensed, lawfully operating businesses: pet boarding operators, kennels, veterinary facilities, animal hospitals, or stables.