Sums the digits of a given number