Forum thread reply count is zero

Hi All by below code when I am running this code on telligent version 10 I was getting reply count as 1 but when I am running ti code on telligent version 12 i am gettin greply count as 0(Zero) , my question is why

#set($threadOrReply = $core_v2_forumThread.Create($forumId, $subject, $body, $options))
#set($threadId = $threadOrReply.Id)

#set($posts = $core_v2_forumReply.List($threadId "%{PageIndex = 0, PageSize = 15, IncludeThreadStarter = 'True'}"))
totalcount $posts.TotalCount

Parents Reply Children
No Data