count-by-value should return map