src/Eloquent/Repository.php
public function count($columns = '*')
    {
        $result = $this->getBuilder()->count($columns);

        // Reset query builder
        $this->resetBuilder();

        return (int) $result;
    }
public function count($columns = '*')
    {
        $result = $this->getBuilder()->count($columns);

        // Reset query builder
        $this->resetBuilder();

        return (int) $result;
    }
public function count ( $ columns = '*' ) { $ result = $ this -> getBuilder ( ) -> count ( $ columns ) ; // Reset query builder $ this -> resetBuilder ( ) ; return ( int ) $ result ; }
Execute query as a count statement.

@author Morten Rugaard <moru@nodes.dk>

@param  string $columns
@return int
Execute query as a count statement .