title: find exact rows in dynamodb table java
body: <p>I need to get the exact count of rows in a dynamodb table. Im new to java so its kind of confusing. My understanding is that you cant use describe table because it only updates every 6 hours.</p>
  
  <pre><code>DynamoDB dynamoDB = new DynamoDB(new AmazonDynamoDBClient(new ProfileCredentialsProvider()));
              Table table = dynamoDB.getTable("&lt;table name&gt;");
  
          ScanResult result = new ScanResult();
  </code></pre>
  
  <p>//Not sure about this last line. Anyone know the solution?
              System.out.println(result.withCount(1));</p>