added test9 for number larger than 1000 not counted