CountInstances was recoded and added CountWords