[Dates] Dates::CountDays() rewritten for usage of DateTime