Count the number of digits a in number n.
The first line contains one 32-bit integer number n. Number n can be negative. The second line contains a single digit a.
Print the number of digits a in number n.