The condition that avoids returning X-Total-Count when counting is disabled also filters out the case where the resource is empty and count is 0. I've opened a PR: #1276