Writing a string counter

Report a typo

Write a function that takes a list of objects and returns the number of strings in the list. If the list item is not a string, it must be skipped. The function must use the is or !is operators to check the type of list items.

Write a program in Kotlin
fun countStrings(list: List<Any>): Int {
// make your code here
}
___

Create a free account to access the full topic