fixed bug

bug prevented parser from updating word count