Strings $S$ and $T$ are given (one per line). Print how many times $T$ occurs in $S$, counted without overlaps (Python str.count).
Input
Line 1: $S$ (length 1 to 100). Line 2: $T$ (length 1 to 10). Lowercase.
Output
Print the number of non-overlapping occurrences of $T$ in $S$.
Example 1
Input
aaaa aa
Output
2
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.