How can I display the total number of pages in a virtual folder used as category?
At the place where you wish to display the count, please place a <cms:dump_all /> tag - it will show you all the variables that are available for use at that point in your template. I am sure you'll be able to spot the one that you are looking for.
Hope this helps.