SELECT COUNT(*) FROM property_sites_index INNER JOIN properties ON property_sites_index.prop_id=properties.id WHERE site_id=7 AND properties.scope_id=1 AND (properties.type_id=2§or=60 OR properties.main_type_id=2§or=60)