returns the sum of digits in the given int