change the word count to a func and call it when a post is loaded as well