count digits in string python