title: Dictionary in VB.NET obtain keys grouped
body: <p>Hi I have this dictionary..</p>
  
  <pre><code>Dim Rooms As New Dictionary(Of Integer, Of Integer)
  
  Rooms(1) = 101, 102, 109, 110
  Rooms(2) = 103, 104, 105
  Rooms(3) = 106, 107
  </code></pre>
  
  <p>I want to know if i can obtain how many keys are in the dictionary</p>
  
  <p>For example, in this dictionary i have 3 keys, and if i use Rooms.Count it returns me 9 thats each pair of keys-values, but i want to obtain 3, each diferent value as key.</p>
  
  <p><em><strong>EDIT: Sintax error
  P.D: I cant use now because i have to use in a webservice filtered by IP, but VS2010 if i use count on the dictionary, tells me that will contain the number of the keys/value pairs.</em></strong></p>