Word and character counter for latex files