fixed the words and letters count functions to use he strings resulting from .read() method and not the file object directly