title: Determine the number of enum elements TypeScript
body: <p>As said in the title, how can you determine the number of elements in a enum in Typescript such as in this example</p>
  
  <pre><code>enum ExampleEnum {
  
      element1 = 1,
      element2 = 2,
      element3 = 3,
      element4 = 4,
      element5 = 5,
      element6 = 6
  
  }
  
  var exampleEnumElementCount:number = ? 
  </code></pre>
  
  <p>How would the count be determined? In this case it should be 6</p>