Every season at the lakeside town of Mirrormere, someone must prepare the expedition manifest. This year the task falls to Harish, armed only with the inscriptions register. Task: Count how many times string t occurs inside s (occurrences may overlap). Input format: Two lines: string s, then pattern t. Output format: Print the occurrence count. Constraints: 1 <= |t| <= |s| <= 1225; lowercase letters.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= |t| <= |s| <= 1225; lowercase letters.
