Added/made more robust :wordcount for latex