Predicting the cumulative number of cases for the COVID-19 epidemic in China from early data