Or more succinctly:
blobs_occ = countmap(vec(blobs))
[blobs_occ[value] for value in blobs]
Edit: and the same in one line, though less readable I think:
getindex.(Ref(countmap(vec(blobs))), blobs)
Or more succinctly:
blobs_occ = countmap(vec(blobs))
[blobs_occ[value] for value in blobs]
Edit: and the same in one line, though less readable I think:
getindex.(Ref(countmap(vec(blobs))), blobs)