8. (3 points) There are more than 5000 toothpicks, which can be divided into small packs according to six specifications. If packed in groups of 10, there will be 9 left over. If packed in groups of 9, there will be 8 left over. The third, fourth, fifth, and sixth specifications are, respectively, 8, 7, 6, and 5 per pack, and there will be 7, 6, 5, and 4 left over, respectively. Originally, there were $\qquad$ toothpicks.
【Answer】Solution: This number $+1=10, 9, 8, 7, 6, 5$ are common multiples,
The least common multiple of $10, 9, 8, 7, 6, 5$ is: $5 \times 2 \times 3 \times 3 \times 4 \times 7=2520$, the common multiple that meets the condition of being over 5000 is $2520 \times 2=5040$, the number of toothpicks is $5040-1=5039$ (pieces).

Answer: There were originally 5039 toothpicks.
Therefore, the answer is: 5039.