Even if the API gives you the number of comments you will create a specific function to calculate it. Make sure that the correct number is displayed on the Comments pop up.