how to avoid capital gain taxes on a land sale?

how many properties can a person invest in from the capital gained from a property sale to avoid capital gain taxes? can one invest in more than one property and buildings or is the tax exemption for one property and a building on that property only? and is there any limit in investing in national bonds or on property or building?