Write a program that finds the number of zeroes when multiplying a series of numbers (a factorial).
Implement trailing_zeroes(n), which receives a non-negative integer n and returns the number of trailing zeroes in n!. A trailing zero is a zero at the end of the decimal representation. Your solution must avoid constructing the full factorial and should handle large values of n.
def trailing_zeroes(n):