There is no limit to the number of horses you can have. Your horses will be automatically sent to your pasture if you don’t have any empty stalls left in your stable.
To access your pasture, click on the icon to the left side of your screen when you are in your home stable.
You will then see the stable overview where you can see which horses are in your stable and which ones are in the pasture.