select t1.title,COUNT(t2. arid) as count 
 from discusstopic as t1,topicarticle as t2 
where t1.topicid=t2.topicid?