Add word count to the pages. Abstract out word count functionality to the page resource class. [Finish #55352938]