Hi @Nukala, Swati [CR-US EXT CONSULTANT] ,
Below is my demo code for your reference:
$(function(){
var count=$(".ms-commentexpand-iconouter").length;
$('#titl0-1_').before("<span>Count:" + count + "</sapn>")
})
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.