#OJ2291. 个位数字

个位数字

个位数字

Time Limit: 1 Sec  Memory Limit: 2 MB

Description

统计在一个整数n中个位数字k出现了多少次。

Input

输入两个整数n和k,n是非负的int范围内的整数,k是个位数(0~9之间)。

Output

输出在n中k出现的次数。

Sample Input

12142 2

Sample Output

2

HINT