Problem Description

Read two strings s and p. Write function count_occ(s,p) and output number of occurrences (overlap allowed).

Input Format

Two lines: s then p.

Output Format

One integer count.

Sample Test Case

Input:
aaaaa aa
Output:
4

Constraints

Total length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next