title: Swift: Get the Number of Keys In a Dictionary
body: <p>For swift arrays, we can simply use the <code>count</code> property to find out how many elements are in the collection. However, we can't do the same for dictionary keys. Is the only way to do this to use a for loop and counter?</p>
  
  <pre><code>var myDict:  [String: AnyObject] = // ... intialize dictionary with keys and values
  
  myDict.keys.count // doesn't work
  </code></pre>