Fixes #5840 fixing word count for IE