For this Question: Given a string S, find the number of occurrences of its smallest character.Input contains a single string S.

Constraints:
1 <= |S| <= 100000
S contains english lowercase letters.Print the number of occurrences of smallest character of S.Sample Input
abcda

Sample Output
2

Explanation: Smallest character is a and it occurs 2 times., I have written this Solution Code: import numpy as np
from collections import defaultdict

d=defaultdict(int)
s=input()
for i in s:
  d[i]+=1
d=sorted(d.items())

for i in d:
  print(i[1])
  break, In this Programming Language: Python, Now tell me if this Code is compilable or not?