fork download
  1. N = input()
  2. K = input()
  3.  
  4. count = 0
  5.  
  6. for digit in N:
  7. if digit == K:
  8. count += 1
  9.  
  10. print(count)
Success #stdin #stdout 0.07s 14156KB
stdin
15265425522
5
stdout
4