How many distinct complaint type codes are there in the database?
SELECT count(DISTINCT complaint_type_code) FROM complaints
SELECT count(DISTINCT complaint_type_code) FROM complaints
[{'count(DISTINCT complaint_type_code)': 2}]