Document 'count' endpoint