title: How to get the total count of Instances and volumes and loadbalancers present in the aws using boto3?
body: <p>I need to get the total counts from aws console using boto3
  I tried to display instances and volumes list but not counts.</p>
  
  <p>I want to know how to list all resources present with the counts.</p>
  
  <p>Can anyone please guide me on this.</p>
  
  <pre><code> for region in ec2_regions:
   conn = boto3.resource('ec2', aws_access_key_id=access_key, aws_secret_access_key=secret_key,
                 region_name=region)
  instances = conn.instances.filter(Filters=[{'Name': 'instance-state-name', 'Values': ['running','stopped']}])
  
  for instance in instances:
      #if instance.state["Name"] == "running":
          print (instance.id, instance.instance_type, region)
  
  
  volumes = conn.volumes.filter()
  
  for vol in volumes:
      print(vol.id,vol.volume_type,region,vol.size)
  </code></pre>
  
  <p>I want to get the Total count of each resource.
  I tried len, size, and other available keys for getting the count but in vain.</p>