def count_characters(string):
    return len(string)

# Example usage:
text = input("Enter a string: ")
count = count_characters(text)
print(f"The number of characters in the string is: {count}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: