update docCount after create or del doc.