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 Companies ( id int, name text, Headquarters text, Industry text, Sales_billion real, Profits_billion real, Assets_billion real, Market_Value_billion text )
TABLE: CREATE TABLE Office_locations ( building_id int, company_id int, move_in_year int )
TABLE: CREATE TABLE buildings ( id int, name text, City text, Height int, Stories int, Status text )

### Question ###
List the number of each company whose office is in the building in a bar chart, and sort by the how many name in desc.

### Accurate SQL ###

SELECT T3.name, COUNT(T3.name) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T3.name ORDER BY COUNT(T3.name) DESC