Problem Description

A string s is provided and a character ch is provided. Count how many times ch occurs in s.

Input Format

Line1: s. Line2: ch (single char).

Output Format

One integer count.

Sample Test Case

Input:
banana a
Output:
3

Constraints

Length of s

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next