title: spark sql count(*) query store result
body: <p>Hello I use Spark with Python,  I performed a basic count(*) query on a dataframe as follow</p>
  
  <pre><code>myquery = sqlContext.sql("SELECT count(*) FROM myDF")
  </code></pre>
  
  <p>Result is</p>
  
  <pre><code>+--------+
  |count(1)|
  +--------+
  |    3469|
  +--------+
  </code></pre>
  
  <p>How can I save this value in order to perform futher operation. </p>
  
  <p>For instance divide  3469 by 24  [whatever 24 means...]</p>