python count digits in integer