title: How to get item count from DynamoDB?
body: <p>I want to know item count with DynamoDB querying.</p>
  
  <p>I can querying for DynamoDB, but I only want to know 'total count of item'.</p>
  
  <p>For example, 'SELECT COUNT(*) FROM ... WHERE ...' in MySQL</p>
  
  <pre class="lang-php prettyprint-override"><code>$result = $aws-&gt;query(array(
   'TableName' =&gt; 'game_table',
   'IndexName' =&gt; 'week-point-index',
   'KeyConditions' =&gt; array(
      'week' =&gt; array(
          'ComparisonOperator' =&gt; 'EQ',
          'AttributeValueList' =&gt; array(
              array(Type::STRING =&gt; $week)
          )
      ),
      'point' =&gt; array(
          'ComparisonOperator' =&gt; 'GE',
          'AttributeValueList' =&gt; array(
              array(Type::NUMBER =&gt; $my_point)
          )
      )
   ),
  ));
  echo Count($result['Items']);
  </code></pre>
  
  <p>this code gets the all users data higher than my point.</p>
  
  <p>If count of $result is 100,000, $result is too much big.
  And it would exceed the limits of the query size.</p>
  
  <p>I need help.</p>