user: ### NOW ANSWER:
Question: Name the total number of elementary schools for 31851
Columns: ['Year', 'District-wide', 'High schools', 'Middle schools', 'Elementary schools', 'Other programs & adjustments']
Types: ['text', 'real', 'real', 'real', 'real', 'real']
Sample row: ['2006-2007', 31221.0, 8808.0, 6405.0, 14369.0, 1639.0]
SQL:

assistant: SELECT COUNT("Elementary schools") FROM "Table" WHERE "District-wide" = 31851.0;