Original: The city was founded circa 1625 by King Andrianjaka and takes its name (the City of the Thousand) from the number of soldiers assigned to guard it.
Simplified: It comes from the number of soldiers Andrianjaka used to guard the city.