N = input()K = input() count = 0 for digit in N: if digit == K: count += 1 print(count)
15265425522 5
4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!