changed word count to use a liquid filter