Number of occurrences

Report a typo

Write a program that finds the frequency of occurrences of substring in given string.


Input data format

The first input line contains a string, the second one contains a substring.

Sample Input 1:

hello there
the

Sample Output 1:

1

Sample Input 2:

hello yellow jello
ll

Sample Output 2:

3
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic