Use DB.RetryQuery instead of Query (for retries in case of ProvisionedThroughputExceeded)
Added ScanRequest.Count(), that counts ALL items.