title: Count rows with Slick 1.0.0
body: <p>I'm trying to create a query with <a href="http://slick.typesafe.com/">Slick</a> 1.0.0 that returns a row count equivalent to the following SQL statement:</p>
  
  <pre><code>SELECT COUNT(*) FROM table;
  </code></pre>
  
  <p>What I have so far is:</p>
  
  <pre><code>val query = for {
    row &lt;- Table
  } yield row
  println(query.length)
  </code></pre>
  
  <p>This prints <code>scala.slick.ast.FunctionSymbol$$anon$1@6860991f</code>. Also, <code>query.length</code> appears to be of type <code>scala.slick.lifted.Column</code>. I cannot find a way to execute the query. All examples that I can find in the documentation and anywhere else do not operate on <code>Column</code> or are for <a href="http://scalaquery.org/">ScalaQuery</a> and do not work anymore.</p>
  
  <p>What can I do to execute this?</p>