add 'count_trailing_zeros' method to count the number of zeros at the end of a factorial