title: List contents of AWS S3 bucket
body: <p>I have a AWS S3 with the following structure or hierarchy:</p>
  
  <ul>
  <li><p>customer/name/firstname/123.gz</p></li>
  <li><p>customer/name/firstname/456.gz</p></li>
  <li><p>customer/name/firstname/789.gz</p></li>
  </ul>
  
  <p>I need to get count of all the gz files in customer/name/firstname using java sdk.</p>
  
  <p>Can I please have a Java code on how to do it?</p>