In legend, the Forbidden City has 9,999 rooms, one less than the Palace of Heaven. (The actual count is 8,886.)