count total numbers from the given string