Refactor word count update to method
Update word count widget on show
Merge branch 'word-counter-fix'

Fix bug where word counter is empty when showing until next rendering.