Put data_count even if preprocess fails.