Return empty response when the count in stats resource is empty

Fixes #99.