thanks for helping find the Hayward Municipal code and looking farther into it i found this
GENERAL REGULATIONS
SEC. 4-4.10 KEEPING OF CERTAIN ANIMALS AS CONSTITUTING
PUBLIC NUISANCE. It shall be unlawful and shall constitute a public nuisance for any person
to keep within the limits of the City any animal or combination of animals which unreasonably
disturbs the peace and comfort of the inhabitants of the neighborhood in which such animal or
combination of animals is kept, or interferes with any person in the reasonable and comfortable
enjoyment of life or property, or creates a significant risk of injury to life or property.
SEC. 4-4.11 UNNECESSARY NOISES. It shall be unlawful for a person to
keep or permit to remain on any premises within the City any animal or combination of animals
that habitually, unnecessarily, and unreasonably disturbs the peace and quiet of any
neighborhood or person by howling, barking, crying, baying, crowing, or making any other
noise.
so from what i see if it bother your neighbors we cant have it but if it doesnt ther eis no restrictions as to ho wmany or what sex, a slong as noone complains