I was taught a short cut to calculate the number of trailing zeros, as basically repeatedly divide by 5 until you get a result less than 5. Example:
75 factorial = 75/5 = 15 / 5 = 3, 15+3 = 18 trailing zeros.
So taking that theory, I do the following:
5000 factorial = 5000/5 = 1000 / 5 = 200 / 5 = 40 / 5 = 8, so I expect 1248 trailing zeros
But everywhere I look, they say the answer is 1249.
Adam! The tip is correct. Thing is, you stopped at $8$ as it was less than 5. Since it isn't, you just need to add one more division and it'll be good!