(B:=(stdin upToEnd asLowercase select:[:c|c<$!|c isLetter])subStrings asBag)asSet asSortedCollection do:[:w|stdout<<(B occurrencesOf:w)<<$ <