improved query to get nr of datasets coupled to source_dataset