what is the number of barrack/cottages a city should have?

does having more cottage means i can build a bigger army?

do idle population keep replenishing without any limit. (meaning after i train troops they drop to 2k, do they eventually rise up to 10k again)

thanks a lot