title: Does aws-cli support *resource count* for a given resource?
body: <p>I am beginner to aws-cli. So far, my first exploratory query for a given resource. I find circuitous (and may be costly) ways of fetching entire data and then counting them. For example, number of instances, number of regions, number of S3 objects etc. It will be helpful if this is supported in cli. Is it supported already?</p>
  
  <p>There is no problem with the current cli but this is more of generic enhancement request to avoid circuitous logic at the client side</p>
  
  <p>Ex:
   I'd like to know how many instances I have in a given region. I know I can start with aws ec2 describe-instances and then do some processing.
  Same applies to get count of any given resource</p>
  
  <p>A pattern of command(s) I'd be interested:</p>
  
  <p>aws ec2 count-instances</p>
  
  <p>aws ec2 count-users</p>
  
  <p>aws &lt;> count-&lt;></p>
  
  <p>wherever count is applicable. In some cases, some other aggregators will also be useful (say, total number of cpus etc)</p>