How many dorms have amenities?
select count(distinct dormid) from has_amenity