title: Get total count of list in Terraform
body: <p>I am wondering if it's possible to get the total count of a list in terraform, I've looked at the tf website and don't see anything for the total count just the use of count.index.</p>
  
  <p>An example list</p>
  
  <pre><code>var "testList"
  type = "list"
  
  default [
  {
    type = "test1"
  },
  {
    type = "test2"
  }
  ]
  </code></pre>
  
  <p>So here I want to get 2 as the total count of testlist</p>
  
  <p>Thanks</p>