31 the bases all around the courtyard, the bases for the entrance to the courtyard, all the pegs for the tent, and all the pegs for the surrounding courtyard.