i want Counting duplicate numbers in a string
for example Counting 2

22241278-------- Count(2)=4