title: Variable captured by closure before being initialized
body: <p>I'm trying to store the number of results from a query into an integer so that I can use it to determine the number of rows in a table. However, I'm getting the following error: <code>Variable 'numberOfGames' captured by a closure before being initialized'</code> on the line <code>query.findObjectsInBackgroundWithBlock{</code>.</p>
  
  <p>I also get another error <code>Variable 'numberOfGames' used before being initialized</code> on the line <code>return numberOfGames</code>.</p>
  
  <p>Here's the function that contains the two errors:</p>
  
  <pre><code>func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int
      {
          var user: PFUser!
  
          var numberOfGames: Int
  
          //...query code....removed to make it easier to read
  
          var query = PFQuery.orQueryWithSubqueries([userQuery, userQuery2, currentUserQuery, currentUserQuery2])
          query.findObjectsInBackgroundWithBlock{
              (results: [AnyObject]?, error: NSError?) -&gt; Void in
  
              if error != nil {
                  println(error)
              }
  
              if error == nil{
  
                  if results != nil{
                      println(results)
                      numberOfGames = results!.count as Int
                  }
              }
          }
          return numberOfGames
      }
  </code></pre>