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 has_amenity ( dormid VARCHAR )
TABLE: CREATE TABLE dorm ( dormid VARCHAR, student_capacity INTEGER )

### Question ###
Find the number of amenities for each of the dorms that can accommodate more than 100 students.

### Accurate SQL ###

SELECT COUNT(*), T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid