fix facets count for raster and vectors in search/api