結果 : algorithm for counting numbers