add cmd KeysCount
exec write cmd in sync state for read-only slave