How many distinct complaint type codes are there in the database?
create table complaints (complaint_type_code varchar, PRIMARY KEY (complaint_type_code))
select count(distinct complaint_type_code) from complaints