changed count_numbers script to use cycle instead of map side-effects