Add json_count_values to count values in JSON dicts

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>