Writting a program to find the number of int in a string