I want to know how many items are in my dynamodb table. From the API guide, one way to do it is using a scan as follows:
Aha, there is a Count option in the scan API, see http://docs.amazonwebservices.com/AWSSDKforPHP/latest/#m=AmazonDynamoDB/scan
Count
scan
scan(array( 'TableName' => 'ProductCatalog' 'Count' => true, )); echo "Count: ".$scan_response->body->Count."\n";