Thread:Extension talk:DynamicPageList (Wikimedia)/Can I count the pages with a templates

Hi, I need to count the pages with a templates and post this number in another page. I'm interested to show the last five page with a templates, a random five page with a specific templates and the page most visited with the same templates. It's possible?

Thanks