31 (the gates of the city are named after the tribes of Israel), three gates: the gate of Reuben, the gate of Judah, the gate of Levi.