The number of trailing zeros in the factorial in any base can be calculated as the number of times the base can be factored from the factorial.
Computer Science learning blog
The number of trailing zeros in the factorial in any base can be calculated as the number of times the base can be factored from the factorial.