fixed misleading message "cursor has been disposed" when calling `count()` for a client-side cursor