/**
  * Retrieve the "count" result of the query.
  *
  * @param  string  $columns
  * @return int
  */
 public function count($columns = null)
 {
     $this->compileWheres();
     $result = $this->query->count();
     return (int) $result;
 }