Python program for counting numbers in a special way.