refactor change cmd argument snapCount to snapshotCount