SELECT tid,COUNT(did) AS num FROM uwebcms_document WHERE lng='cn' AND mid=17 GROUP BY tid