# import necessary libraries
import pandas as pd

# define your series
s = pd.Series(['apple', 'banana', 'cherry'])

# use s.str.count() method
result = s.str.count('\w')

# print the result
print(result)