Count the number of times digit a appears in the number n.
The first line contains a 32-bit integer n. The number n can be negative. The second line contains a single digit a.
Print the number of times digit a appears in n.
Example 1
Example 2