Returns counts for task list requests (fixes #4579)