Sanitize trash_count to ensure it is always a number