title: UICollectionview Number of Section like in TableView
body: <p>In Tableviews I am using this to count how many sections should be created:</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
        return [[[MyArray objectAtIndex:section]objectForKey:@"Rows"]count];   
  }
  </code></pre>
  
  <p>Now I am trying to implement the same in a Collection view but here the code is different:</p>
  
  <pre><code>-(NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{
  
      return 1;   
  }
  </code></pre>
  
  <p>How can I achieve the same like I did in Tableviews because in this case it seems I can't use objectAtIndex?</p>