Adding a dynamic item that counts the number of posts in a collection

If I really needed this, I would add a dynamic list, insert a single character inside the single list item, hide the dynamic list from being displayed, then use JavaScript to count the number of items and insert the number into the text/link element.