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μnicip=1064 OR properties.main_type_id=2§or=60μnicip=1064) AND properties.area_id=2267