HI Tora45,
This is my first time responding to a post. I keep making mistakes in my posting attempts. I live in Maryland and I have been through the wringer regarding the livestock and zoning. I have w minis and we built our barn this past April of 2019.
What county are you searching? I live in Frederick, County. I have 2 acres, but I am in reserved forestry area so I qualify to keep livestock/agriculture.
This is a place to start but DON'T rely on it completely. Every county has their own planning and zoning laws, based on the universal codes and laws, but amended to suit the needs of that particular county.
I'm happy to answer any questions pertaining to Frederick county as I have a good working knowledge of the zoning laws.
Here is a link to PDF file, entitled County Zoning and Horses in Maryland.
https://elcr.org/wp-content/uploads/2013/04/MHC-Guide-to-County-Zoning-Horses.pdf