datacube.index._datasets.DatasetResource.count_by_product

DatasetResource.count_by_product(**query)[source]

Perform a search, returning a count of for each matching product type.

Parameters:query (dict[str,str|float|datacube.model.Range]) –
Returns:Sequence of (product, count)
Return type:__generator[(DatasetType, int)]]