Count Digits in a given Number using for loop C