protected function whereCountQuery( QueryBuilder $query, $operator = '>=', $count = 1, $boolean = 'and' )
	{
		if ( is_numeric( $count ) )
		{
			$count = new Expression( $count );
		}

		$this->query->addBinding( $query->getBindings(), 'where' );

		return $this->where( new Expression( '(' . $query->toSql() . ')' ), $operator, $count, $boolean );
	}
protected function whereCountQuery( QueryBuilder $query, $operator = '>=', $count = 1, $boolean = 'and' )
	{
		if ( is_numeric( $count ) )
		{
			$count = new Expression( $count );
		}

		$this->query->addBinding( $query->getBindings(), 'where' );

		return $this->where( new Expression( '(' . $query->toSql() . ')' ), $operator, $count, $boolean );
	}
protected function whereCountQuery ( QueryBuilder $ query , $ operator = '>=' , $ count = 1 , $ boolean = 'and' ) { if ( is_numeric ( $ count ) ) { $ count = new Expression ( $ count ) ; } $ this -> query -> addBinding ( $ query -> getBindings ( ) , 'where' ) ; return $ this -> where ( new Expression ( '(' . $ query -> toSql ( ) . ')' ) , $ operator , $ count , $ boolean ) ; }
Add a sub query count clause to the query.

@param Builder $query
@param  string $operator
@param  int $count
@param  string $boolean
@return $this
Add a sub query count clause to the query .