Summary:

You can build any number of units in a city (as long as you have the required resources and the unit hasn't become obsolete). Since you can only have one combat and one non-combat unit in a city, you may have to move the newly-constructed unit out of the city immediately after it's built.