Count how many of a certain digit is present on a given number. A line containing two integers separated by space.
Input: 1 12341231 Output: 3 Input: 9 994949