Attempted a data mapping for number of word appearances in all lines of a given string.