Article Count for every category in sidebar of listing/category page

Dear ahmadsaad , 

Thank you for the hint, but my target is to get ID of the category from the TPL to my plugin, so that I can fetch the count, as per your answer sCategories array is sent to TPL , looping there and pritining the ID or other fields, I am unable to access ID of individual category in my plugin.

Please reply to for my query.

Thank you.