code: def count(index,h):
      '''
      Gives count of the documents stored in Elasticsearch. If index option is
      provided, it will provide document count of that index.
      '''
      try:
          response = base.es.cat.count(index,h=h)
          table = base.draw_table(response)
      except Exception as e:
          click.echo(e)
      else:
          click.echo(tablef count(index,h):
      '''
      Gives count of the documents stored in Elasticsearch. If index option is
      provided, it will provide document count of that index.
      '''
      try:
          response = base.es.cat.count(index,h=h)
          table = base.draw_table(response)
      except Exception as e:
          click.echo(e)
      else:
          click.echo(table)
docs: Gives count of the documents stored in Elasticsearch. If index option is
      provided, it will provide document count of that index.