title: How do I get the count of a Swift enum?
body: <p>How can I determine the number of cases in a Swift enum?</p>
  
  <p>(I would like to avoid <a href="https://stackoverflow.com/a/24137319/17294">manually enumerating through all the values</a>, or using the old "<a href="https://stackoverflow.com/a/14717179/17294">enum_count trick</a>" if possible.)</p>