Update countNums.py

Add recursive implementation