Which Japanese city had the largest population of a metropolitan area in the world at the time of the Edo Period?

1. Kyoto
2. Osaka
3. Edo
4. Nagasaki