Fix chunked-request condition

If we receive more requests than the `COUNT` we provided, we should request the next chunk, the same as if we had received exactly the `COUNT` we provided. The database can store multiple entries in one response document. It will fetch `COUNT` database documents and will return as many API objects as result from those documents.

/cc @hampelm