counter

PythonF

String Word Counter

Given a string S as input which consists of multiple words separated by a space, the program must print the count C of the words which are…