Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE Timed_Locations_of_Things (Location_Code VARCHAR, thing_id VARCHAR)
TABLE: CREATE TABLE Things (thing_id VARCHAR, service_details VARCHAR)

### Question ###
How many distinct locations have the things with service detail 'Unsatisfied' been located in?

### Accurate SQL ###

SELECT COUNT(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied'