Answer:
def findLength(string):
print(len(string))
string = input()
findLength(string)
Step-by-step explanation:
You didn't specify which programming language, so I wrote it in python. Hope this helps! The len function counts the number of characters in a string.