revision: avoid work after --max-count is reached