When querying with the count parameter set to true, the response entity will only be a number. However, this is no valid JSON. So it should either return a minimal JSON struct like {"count":123} or the content-type in the header should be set to text/plain.
When querying with the count parameter set to true, the response entity will only be a number. However, this is no valid JSON. So it should either return a minimal JSON struct like {"count":123} or the content-type in the header should be set to text/plain.