Get the count of Discussion and Question in telligent 8.

I am able to get the no. of forum in a particular group, but i want filter it with total no. of "Discussion" and "Question" in separate column. I am using the below code, please suggest

#set($pagedListResponse = $core_v2_group.List("%{ GroupTypes = 'Joinless'}"))
#foreach ($GroupName in $pagedListResponse)
    #set($thread = $core_v2_forum.List("%{GroupId =$GroupName.Id }"))
    #foreach ($y in $thread)
        <div class="col-xs-12 col-sm-6 table-column application-title">
        <div class="col-sm-6 table-column post-date">