Factorial Trailing Zeros

Python function to compute trailing zeros in the factorial of a provided positive integer.

Write a function that takes in an integer `n` (where `n >= 1`) and returns the count of the trailing zeros in its factorial. Trailing zeroes in a number are produced by multiplying the number by 10, which is a result of multiplying 2 and 5. When calculating the trailing zeros of a factorial (n!), it's sufficient to count the number of 5s in its prime factors, as they are less frequent than 2s. ### Parameters - `n` (`int`): An integer for which the factorial is calculated and the trailing zeros in that factorial are determined. ### Return Value - An integer (`int`), representing the count of the trailing zeros in the factorial of `n`. ### Examples ```python # The factorial of 10 is 3628800, with 2 trailing zeros. trailing_zeros_in_factorial(10) # Expected output: 2 # The factorial of 2 is 2, with no trailing zeros. trailing_zeros_in_factorial(2) # Expected output: 0 # The factorial of 15 is 1307674368000, with 3 trailing zeros. trailing_zeros_in_factorial(15) # Expected output: 3 ```