I’ve had much difficulty trying to comprehend this lesson. My understanding came after I figured out that different object types such as stings, lists, and dictionaries are themselves classes that contain methods.
In this case, the objects in how_many_s that have the count method are: str & list. Some other methods for str would be upper, find, and lower.
I hope someone finds this useful.