In Python, you can count the length of a string using the len() function.
text = "Hello, World!"
length = len(text)
print("Length of the string:", length)
# Output: Length of the string: 38
The len() function counts all characters, including spaces and punctuation.