rest service ... count