Is there a way to use the count function in nested lists?

Is there a way to use the count function in nested lists?

This question came to me while working on the last task in the Len’s Slice project: https://www.codecademy.com/paths/computer-science/tracks/cspath-flow-data-iteration/modules/dspath-lists/projects/lens-slice

Hi, what does this count function look like?

If it’s some sort of counter for depth of lists within lists, then yes, there are ways.