title: Returning value from a Parse function in swift
body: <p>I want to return a value from a parse function in swift but I'm running into a problem...
  When I try to return the value in the function I get &quot;Cannot convert value of type 'Int' to closure result type '()'&quot;</p>
  <pre><code>func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int
  {
      let query = PFQuery(className: &quot;people&quot;)
      query.countObjectsInBackground
      { (count, error) in
          
          return Int(count)
      }
  }
  </code></pre>