title: Get number of available instances in ec2 using java api
body: <p>I am using <code>com.amazonaws.services.ec2</code> for creating instances in ec2.</p>
  
  <p>But ec2 have VM limit.</p>
  
  <p>Is there any method to get the avilable instance count using this java api.</p>
  
  <p>Thanks in advance</p>