powershell script: how to count the number of lines and words on an online SharePoint page

I am asked to generate a report that illustrates the number of pages and more the word count on each page, and the number of files on that site (word, PDF, images, etc.).

Is there a custom tool that I can use to enter the URL of my SharePoint site and then it will generate the report I'm looking for? Or if you think SharePoint Powershell can help with this, share your ideas with me.