add count-by-value to api
count-by-value should return map
Merge pull request #10 from yieldbot/count_by_value

add count-by-value to api