Actual result from CartoDB! Sort of - quotes in the `sql` field cause problems parsing the response as JSON. Check it out via dev server:

http://localhost:8080/api/counts/idn/10/91?range=2006-01-01,2010-01-01