how to count trailing zeroes in factorial of a number