public function countBy(array $where = [])
    {
        $query = $this->make();

        $query = $this->applyWhere($query, $where);

        return $query->count();
    }
public function countBy(array $where = [])
    {
        $query = $this->make();

        $query = $this->applyWhere($query, $where);

        return $query->count();
    }
public function countBy ( array $ where = [ ] ) { $ query = $ this -> make ( ) ; $ query = $ this -> applyWhere ( $ query , $ where ) ; return $ query -> count ( ) ; }
Count the number of records matching input parameters.

@param array $where
@return int
Count the number of records matching input parameters .